最后更新于5年前
这有帮助吗?
结构体的作用是将多个值聚合为单个实体。
一个struct的是其字段被设为各自的零值。
struct
struct声明方式:
type MyStruct struct { IntVal int StringVal string unexportedIntVal int }
更进一步学习。