package system import "fmt" func ExampleSetOsEnv() { err := SetOsEnv("foo", "abc") result := GetOsEnv("foo") fmt.Println(err) fmt.Println(result) // Output: // // abc } func ExampleGetOsEnv() { ok := SetOsEnv("foo", "abc") result := GetOsEnv("foo") fmt.Println(ok) fmt.Println(result) // Output: // // abc } func ExampleRemoveOsEnv() { err1 := SetOsEnv("foo", "abc") result1 := GetOsEnv("foo") err2 := RemoveOsEnv("foo") result2 := GetOsEnv("foo") fmt.Println(err1) fmt.Println(err2) fmt.Println(result1) fmt.Println(result2) // Output: // // // abc // } func ExampleCompareOsEnv() { err := SetOsEnv("foo", "abc") if err != nil { return } result := CompareOsEnv("foo", "abc") fmt.Println(result) // Output: // true } func ExampleExecCommand() { _, stderr, err := ExecCommand("ls") // fmt.Println(stdout) fmt.Println(stderr) fmt.Println(err) // Output: // // } func ExampleGetOsBits() { osBits := GetOsBits() fmt.Println(osBits) // Output: // 64 }