Fork me on GitHub
摘要: Go编程基础 1、一般结构 // 当前程序的包名 package main // 导入其它的包 import "fmt" // 常量的定义 const PI = 3.14 // 全局变量的声明与赋值 var name = "gopher" // 一般类型声明 type newType int // 阅读全文
posted @ 2017-07-24 13:45 大葱哥 阅读(165) 评论(0) 推荐(0) 编辑