摘要:
type Student struct{ name string age int } var stu Student stu.name,stu.age = "张三”,10 stu2 := Student{"李四",20} stu3 := new(Student) //stu3是一个指针 阅读全文
摘要:
1、定义结构体 type Student struct { name string code int } 2、类型别名 type i int64 var age i = 30 3、定义接口 type inter interface{ eat() walk() } 4、定义函数类型 type fun_ 阅读全文