<code>package main
import "fmt"
func main(){
fmt.Println("hello,go");
}/<code>
注意:{不能另起一行,和C语言不同。
fmt: 猜测是format的缩写。
直接运行,使用:go run test.go
编译生成.exe文件:使用:go build test.go
<code>package main
import "fmt"
func main(){
fmt.Println("hello,go");
}/<code>
注意:{不能另起一行,和C语言不同。
fmt: 猜测是format的缩写。
直接运行,使用:go run test.go
编译生成.exe文件:使用:go build test.go