A Minecraft datapack generator written in go.
at main 19 lines 280 B view raw
1package structure 2 3type Structure struct { 4 filePath string 5} 6 7func MkStructure(name, filePath string) Structure { 8 return Structure{ 9 filePath: filePath, 10 } 11} 12 13func (s Structure) Type() string { 14 return "structure" 15} 16 17func (s Structure) FilePath() string { 18 return s.filePath 19}