Documentation ¶
Index ¶
- func Generate(cfg *Config, prefix string) (result map[string]*GenerateResult, errs []error)
- func Options() (data map[string][]byte)
- func RegisterPlugin(id string, cb func() Plugin)
- func TypeString(v interface{}, onlySign bool, importer Importer) string
- func TypeStringWithoutImport(v interface{}, onlySign bool) string
- type AstFinder
- type Config
- type ContextKey
- type GenerateResult
- type Generator
- type GeneratorPackage
- type Importer
- type Plugin
- type PluginConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(cfg *Config, prefix string) (result map[string]*GenerateResult, errs []error)
func RegisterPlugin ¶
func TypeString ¶
func TypeStringWithoutImport ¶
Types ¶
type Config ¶
type GenerateResult ¶
type GeneratorPackage ¶
type GeneratorPackage interface {
Package() string
}
Click to show internal directories.
Click to hide internal directories.