Documentation ¶
Index ¶
- func AddTemplateHelpers(s Setter)
- func Default() types.Importer
- func DefaultWithTestFiles() types.Importer
- func Parse(r io.Reader) (definition.Definition, error)
- func ParseDir(dir string) (definition.Definition, error)
- func Render(w io.Writer, templateName, tpl string, def definition.Definition) error
- type Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTemplateHelpers ¶
func AddTemplateHelpers(s Setter)
AddTemplateHelpers adds all the built-in template helpers.
func Default ¶
Default returns an importer that will try to import code from gopath before using go/importer.Default and skipping test files
func DefaultWithTestFiles ¶
DefaultWithTestFiles same as Default but it parses test files too
func Parse ¶
func Parse(r io.Reader) (definition.Definition, error)
Parse parses a Remoto definition file from the io.Reader.
func ParseDir ¶
func ParseDir(dir string) (definition.Definition, error)
ParseDir parses a package of .remoto.go files.
func Render ¶
func Render(w io.Writer, templateName, tpl string, def definition.Definition) error
Render renders the tpl template with the Definition into w.
Types ¶
Click to show internal directories.
Click to hide internal directories.