Versions in this module Expand all Collapse all v1 v1.0.1 Apr 12, 2022 Changes in this version + func Generate(schemaPath string, cfg *gen.Config, options ...Option) error + func LoadGraph(schemaPath string, cfg *gen.Config) (*gen.Graph, error) + type Annotation = schema.Annotation + type DefaultExtension struct + func (DefaultExtension) Annotations() []Annotation + func (DefaultExtension) Hooks() []gen.Hook + func (DefaultExtension) Options() []Option + func (DefaultExtension) Templates() []*gen.Template + type DependencyOption func(*gen.Dependency) error + func DependencyName(name string) DependencyOption + func DependencyType(v interface{}) DependencyOption + func DependencyTypeInfo(t *field.TypeInfo) DependencyOption + type Extension interface + Annotations func() []Annotation + Hooks func() []gen.Hook + Options func() []Option + Templates func() []*gen.Template + type Option func(*gen.Config) error + func Annotations(annotations ...Annotation) Option + func Dependency(opts ...DependencyOption) Option + func Extensions(extensions ...Extension) Option + func FeatureNames(names ...string) Option + func Storage(typ string) Option + func TemplateDir(path string) Option + func TemplateFiles(filenames ...string) Option + func TemplateGlob(pattern string) Option