Files
2026-07-13 13:33:09 +08:00

18 lines
232 B
Go

package term
import (
"fmt"
"os"
"runtime"
)
func GetOsDetails() string {
return fmt.Sprintf(
"OS: %s\nArchitecture: %s\nCPUs: %d\nShell: %s",
runtime.GOOS,
runtime.GOARCH,
runtime.NumCPU(),
os.Getenv("SHELL"),
)
}