Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(references *References, gen *Generator) error
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator holds a buffer of the output that will be generated.
func (*Generator) PrettyPrint ¶
func (g *Generator) PrettyPrint(data interface{})
PrettyPrint pretty-prints arbitrary data.
There are special rules for some composite types to ensure we have verbose output, but simple types such as strings and numbers are printed using the built-in `%#v` format filter.
func (*Generator) Print ¶
func (g *Generator) Print(a ...interface{})
Print prints the given a to the buffer.
type Reference ¶
type Reference struct { Content json.RawMessage `json:"content"` Filename string `json:"filename"` }
An element in `generated/references.json`
type References ¶
type References struct {
// contains filtered or unexported fields
}
References represents `generated/references.json`
func LoadReferences ¶
func LoadReferences() (*References, error)
Click to show internal directories.
Click to hide internal directories.