摘要:
package main import "fmt" // Golang中空接口和类型断言使用细节 type ADDress struct { Name string Phone int } func main() { var userinfo = make(map[string]interface{ 阅读全文
摘要:
package main import ( "encoding/json" "fmt" ) // Golang结构体和Json相互转换 序列化和反序列化 type Student struct { ID int Gender string name string // 私有属性不能被json包访问。 阅读全文
摘要:
package main import "fmt" // Golang中的结构体详解 type newInt int // 自定义类型 type myInt = int // 类型别名 type zsInt int type person struct { name string city stri 阅读全文