示例代码如下:

// 表明这个go文件属于main包, 每个文件都属于一个包
package main
// 导入标准输入输出包
import (
	"fmt"
)
// 主函数
func main(){
	fmt.Println("hello world")
}