关键字-type
功能一:类型别名
1 | type FT func(int, string) (string, error) |
实现接口
1 | type Collection interface { |
拥有自己的方法
1 | type Stack []int |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
1 | type FT func(int, string) (string, error) |
1 | type Collection interface { |
1 | type Stack []int |