摘要: golang通过type定义函数类型 在 Go 语言中,type 可以定义任何自定义的类型 比如熟悉的:type dog struct{},type myInt int 等等 所以 func 也是可以作为类型自定义的,type myFunc func(int) int,意思是自定义了一个叫 myFu 阅读全文
posted @ 2023-05-07 23:34 厚礼蝎 阅读(91) 评论(0) 推荐(0) 编辑