验证中...
Languages: Go
Categories: 编程语言基础
Latest update 2019-06-25 17:55
gistfile1.txt
Raw Copy
//程序所属包
package main
//导入依赖包
import "fmt"
//常量定义
const NAME string="wfy"
//全局变量的声明与赋值
var a string="ZQS"
//一般类型声明
type sexInt int
//结构的声明
type learn struct {
}
//声明接口
type Ilearn interface {
}
//函数定义
func learnGo() {
fmt.Print("learnGo")
}
//main函数
func main() {
learnGo()
fmt.Println("learn")
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search