Files
the-way-to-go_ZH_CN/eBook/examples/chapter_4/goos.go
2015-03-03 12:25:25 -05:00

26 lines
539 B
Go

package main
<<<<<<< HEAD
=======
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541
import (
"fmt"
"os"
)
<<<<<<< HEAD
func main() {
var goos string = os.Getenv("GOOS")
fmt.Printf("The operating system is: %s\n", goos)
path := os.Getenv("PATH")
fmt.Printf("Path is %s\n", path)
}
=======
func main() {
var goos string = os.Getenv("GOOS")
fmt.Printf("The operating system is: %s\n", goos)
path := os.Getenv("PATH")
fmt.Printf("Path is %s\n", path)
}
>>>>>>> 0364d180eb1d1b8067d1248ace49ca46c816e541