Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Camelize = inflect.Camelize
var Pascal = inflect.Pascal
var Titlecase = inflect.Titlecase
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
the generator walks a list of groups, producing one group at a time: each of which can be written to its own location.
func MakeGenerator ¶
func (*Generator) WriteReferences ¶
record the derived type data for the current group using sqlite friendly data to the passed database
func (Generator) WriteSchema ¶ added in v0.24.6
func (*Generator) WriteSource ¶
write a go file containing typeinfo for the current group
func (*Generator) WriteTable ¶
record the primary type data for the current group using sqlite friendly data to the passed database
type MessageMap ¶
func MakeMessageMap ¶ added in v0.24.6
func MakeMessageMap(msg compact.Message) MessageMap
turn slices of labels and args into a map of { label => arg }
func (MessageMap) GetBool ¶
func (mm MessageMap) GetBool(name string) (ret bool, err error)
returns false if there was a value, but it wasnt a bool
func (MessageMap) GetMessages ¶ added in v0.24.6
func (mm MessageMap) GetMessages(key string) (ret []compact.Message, err error)
expects that v is nil, or a slice of messages.
func (MessageMap) GetString ¶
func (mm MessageMap) GetString(key, otherwise string) (ret string, err error)
returns false if there was a value, but it wasnt a string
func (MessageMap) GetStrings ¶ added in v0.24.6
func (mm MessageMap) GetStrings(key string) (ret []string, err error)
expects that v is nil, a string, or a slice of strings
type Registry ¶
type Registry []Signature
Accumulates tapestry type specs to build lists of slots and slats and their signatures. Doesnt currently support multiple groups