Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailConfig ¶
type DetailConfig struct {
Name string `yaml:"name"`
}
DetailConfig sets the default properties to be set replace in each json file
type YamlConfig ¶
type YamlConfig struct { Config []map[string]string Detail map[string][]DetailConfig `yaml:",inline"` }
YamlConfig defines the structure for the config file for each API
func NewYamlConfig ¶
func NewYamlConfig() *YamlConfig
NewYamlConfig return a new yaml struct with Config and Detail as fields
func (*YamlConfig) AddConfig ¶
func (yc *YamlConfig) AddConfig(name string, rawName string)
AddConfig allows to add new configs to the yaml file
func (*YamlConfig) CreateYamlFile ¶
CreateYamlFile transforms the struct into a physical file on disk
Click to show internal directories.
Click to hide internal directories.