Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Package string `json:"package"` ImportPath string `json:"import_path"` SeparatorComments bool `json:"separator_comments"` Items []ConfigItem `json:"items"` }
Config is a collection of ConfigItem structs.
func (*Config) LoadJSONFile ¶
LoadJSONFile reads from the file pointed to by path and reads the JSON object contained within into a *Config.
type ConfigItem ¶
type ConfigItem struct { Name string `json:"name"` Type string `json:"type"` Imports []string `json:"imports"` // TODO Separate imports for source and test? Implement []string `json:"implement"` Tests []string `json:"tests"` TestValues []string `json:"testValues"` }
ConfigItem is a set of configuration values for a Generator.
Click to show internal directories.
Click to hide internal directories.