Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Parser = participle.MustBuild( &Template{}, participle.Lexer(lex), participle.Unquote("String"), participle.Elide("Whitespace", "Comment"), )
Functions ¶
This section is empty.
Types ¶
type AnnotatedField ¶
type Object ¶
type Object struct {
Fields []AnnotatedField `"{" (@@ ("," @@)* ","?)? "}"`
}
type Value ¶
type Value struct {
// These are standard JSON fields.
String *string ` @String`
Number *float64 `| @Number`
Object *Object `| @@`
Array []Value `| "[" (@@ ("," @@)* ","?)? "]"`
Bool *bool `| (@"true" | "false")`
Null bool `| @"null"`
// These are template elements generating JSON fields.
Generator *Generator `| @@`
Extractor *string `| @JSONPath`
Function *Function `| @@`
}
Click to show internal directories.
Click to hide internal directories.