Documentation
¶
Index ¶
Constants ¶
View Source
const BODY_SUBSTITUTION = "%[...]"
Variables ¶
View Source
var Registry = map[string][]string{}
Functions ¶
Types ¶
type GeneratorTemplate ¶
type GeneratorTemplate struct {
Dir string
Iterators map[string]internal.Rows
Definitions map[string]Definition
}
func NewGeneratorTemplate ¶
func NewGeneratorTemplate(root string, manifest *internal.JsonFile) (*GeneratorTemplate, error)
type InlineTemplate ¶
type InlineTemplate struct {
RequiredArgs []string
Call func(writer io.Writer, reader io.Reader, args []string) error
}
func NewInlineTemplate ¶
func NewInlineTemplate(dir string, manifest *internal.JsonFile) (*InlineTemplate, error)
func (*InlineTemplate) IsArgPassthrough ¶
func (template *InlineTemplate) IsArgPassthrough() bool
type Line ¶
func (*Line) ExtractResource ¶
type Mcfunction ¶
type Mcfunction struct {
Path string
Scanner *bufio.Scanner
// contains filtered or unexported fields
}
func NewMcfunction ¶
func NewMcfunction(path string, scanner *bufio.Scanner) *Mcfunction
func (*Mcfunction) BuildTree ¶
func (fn *Mcfunction) BuildTree() *Mcfunction
func (*Mcfunction) GenerateFiles ¶
func (fn *Mcfunction) GenerateFiles(lines []string) (map[string][]string, error)
func (*Mcfunction) Parse ¶
func (fn *Mcfunction) Parse(templates map[string]*InlineTemplate) ([]string, error)
func (*Mcfunction) ParseAndSave ¶
func (fn *Mcfunction) ParseAndSave(templates map[string]*InlineTemplate) error
Click to show internal directories.
Click to hide internal directories.