下一个实现接口附加方法的方法是否正确?(getKey,getData)type reader interface { getKey(ver uint) string getData() string}type location struct { reader fileLocation string err os.Error}func (self *location) getKey(ver uint) string {...}func (self *location) getData() string {...}func NewReader(fileLocation string) *location { _location := new(location) _location.fileLocation = fileLocation return _location}
- 2 回答
- 0 关注
- 255 浏览
添加回答
举报
0/150
提交
取消