This commit is contained in:
Li Zebang
2018-04-26 01:40:31 +08:00
committed by 无闻
parent ac4e312505
commit 64bc47d9a0
3 changed files with 4 additions and 3 deletions

View File

@@ -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)