go 结构开发规范
机构规范:
// 当前程序的包名
package main
//导入其他的包
import "fmt"
//常量的定义
const PI=3.14
//全局变量的声明和赋值
var name = "gopher"
//一般类型声明
type newType int
//结构的声明
type gopher struct{}
//接口的声明
type golang interface{}
//由main函数作为程序入口点启动
func main(){
fmt.Println("Hello world! 你好世界")
}

浙公网安备 33010602011771号