1 Star 1 Fork 0

wzshiming / gotype

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
types_array.go 411 Bytes
一键复制 编辑 原始数据 按行查看 历史
wzshiming 提交于 2018-05-29 10:33 . rename
package gotype
import "fmt"
func newTypeArray(v Type, l int) Type {
return &typeArray{
elem: v,
le: l,
}
}
type typeArray struct {
typeBase
le int
elem Type
}
func (t *typeArray) String() string {
return fmt.Sprintf("[%v]%v", t.le, t.elem)
}
func (t *typeArray) Kind() Kind {
return Array
}
func (t *typeArray) Elem() Type {
return t.elem
}
func (t *typeArray) Len() int {
return t.le
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wzshiming/gotype.git
git@gitee.com:wzshiming/gotype.git
wzshiming
gotype
gotype
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891