mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
15 lines
210 B
Go
15 lines
210 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
func main() {
|
|
var goos string = runtime.GOOS
|
|
fmt.Printf("The operating system is: %s\n", goos)
|
|
path := os.Getenv("PATH")
|
|
fmt.Printf("Path is %s\n", path)
|
|
}
|