2019年12月26日

Go 结构体 (struct)

摘要: 结构体就是一个复杂的数据类型,里面可以包含字段,也可以嵌套其他结构体 Go 中没有 class,可以使用 struct 代替 声明 通过 type she type struct_name struct { field_name1 field_type1 field_name2 field_type 阅读全文

posted @ 2019-12-26 16:50 doubtful 阅读(1767) 评论(1) 推荐(0) 编辑

导航