The next method is to implement the methods associated with the interface? ( getKey
, getData )
type reader interface {getKey (ver uint) string getData () string} type position structure { Reader fileLocation string {OS} location (_ location: = new location (location) _ location.file location = return of file location _ location}
T is to explicitly say that you are implementing an interface - if there are all the necessary things for any type of interface, then use it through that interfaceYou may not need to go inside the reader
in the type space structure
.
Look here:
Comments
Post a Comment