Versions in this module Expand all Collapse all v3 v3.0.0 Mar 6, 2024 Changes in this version + func DefaultExportNameFunc(name string, abbreviations map[string]bool) string + func SplitComponents(name string) []string + type ExportNameFunc func(string) string + type Generator struct + func NewGenerator(options ...GeneratorOption) *Generator + func (g *Generator) Generate() ([]byte, error) + func (g *Generator) ObserveJSONFile(filename string) error + func (g *Generator) ObserveJSONReader(r io.Reader) error + func (g *Generator) ObserveValue(value any) + func (g *Generator) ObserveYAMLFile(filename string) error + func (g *Generator) ObserveYAMLReader(r io.Reader) error + type GeneratorOption func(*Generator) + func WithAbbreviations(abbreviations ...string) GeneratorOption + func WithAddStructTagName(structTagName string) GeneratorOption + func WithExportNameFunc(exportNameFunc ExportNameFunc) GeneratorOption + func WithExtraAbbreviations(abbreviations ...string) GeneratorOption + func WithGoFormat(goFormat bool) GeneratorOption + func WithImports(imports ...string) GeneratorOption + func WithIntType(intType string) GeneratorOption + func WithOmitEmptyTags(omitEmptyTags OmitEmptyTagsType) GeneratorOption + func WithPackageComment(packageComment string) GeneratorOption + func WithPackageName(packageName string) GeneratorOption + func WithRenames(renames map[string]string) GeneratorOption + func WithSkipUnparsableProperties(skipUnparsableProperties bool) GeneratorOption + func WithStringTags(stringTags bool) GeneratorOption + func WithStructTagName(structTagName string) GeneratorOption + func WithStructTagNames(structTagNames []string) GeneratorOption + func WithTypeComment(typeComment string) GeneratorOption + func WithTypeName(typeName string) GeneratorOption + func WithUseJSONNumber(useJSONNumber bool) GeneratorOption + type OmitEmptyTagsType int + const OmitEmptyTagsAlways + const OmitEmptyTagsAuto + const OmitEmptyTagsNever Other modules containing this package github.com/twpayne/go-jsonstruct github.com/twpayne/go-jsonstruct/v2