Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDefaultConfig ¶
WriteDefaultConfig writes a default configuration to the given io.Writer.
Types ¶
type Boilerplate ¶
type Boilerplate struct { ClientPrefix string `yaml:"client_prefix"` BaseURL pkg.Visibility `yaml:"base_url"` Backend pkg.Visibility `yaml:"backend"` Endpoint pkg.Visibility `yaml:"endpoint"` }
Boilerplate defines the options for boilerplate code generation
type Config ¶
type Config struct { Document string `yaml:"document"` Output string `yaml:"output"` Package struct { Path string `yaml:"path"` Name string `yaml:"name"` } `yaml:"package"` Boilerplate Boilerplate `yaml:"boilerplate"` Types map[string]string `yaml:"types"` StringFormats map[string]string `yaml:"string_formats"` }
Config is the toplevel configuration for running oag
Click to show internal directories.
Click to hide internal directories.