小白的江湖修炼
Golang-理解接口数据类型 Golang-理解接口数据类型
认识接口Go 语言提供了另外一种数据类型即接口,它把所有的具有共性的方法定义在一起,任何其他类型只要实现了这些方法就是实现了这个接口。 接口使用 /* 定义接口 */ type interface_name interface { m
2020-03-08
Golang-了解rune数据类型 Golang-了解rune数据类型
Golang中rune数据类型是什么?官方解释// rune is an alias for int32 and is equivalent to int32 in all ways. It is // used, by conventio
2020-02-24