1.自定义数组类型
type dics struct {hello stringid intvalue float32} //申明变量 为定义的类型,传值var a dicsa.hello = “go语言”a.id = 2a.value = 1.21
2.、自定义变量类型,赋给指针
func main() {type dics struct {hello stringid intvalue float32}var a dicsa.hello = "goè¯è¨€"a.id = 2a.value = 1.21var aa *dicsaa = &afmt.Println(aa.hello)}