摘要: 一、定义结构体 go语言自定义数据类型使用 type ,定义结构体使用 type + stuct 关键字 package main import ( "fmt" ) type Cat struct { Name string Age int8 Color string } func main(){ 阅读全文
posted @ 2024-01-07 16:13 远洪 阅读(14) 评论(0) 推荐(0) 编辑