<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