package main
import (
“fmt”
)
func main() {
fmt.Println(“hello go”)
}
然后在文件目录下运行go run hello.go
或者go build hello.go 生成 hello.exe执行
package main
import (
“fmt”
)
func main() {
fmt.Println(“hello go”)
}
然后在文件目录下运行go run hello.go
或者go build hello.go 生成 hello.exe执行