package structure type Structure struct { filePath string } func MkStructure(name, filePath string) Structure { return Structure{ filePath: filePath, } } func (s Structure) Type() string { return "structure" } func (s Structure) FilePath() string { return s.filePath }