mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:21:38 +08:00
@@ -3,10 +3,11 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var goos string = os.Getenv("GOOS")
|
||||
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)
|
||||
|
Reference in New Issue
Block a user