package
0.0.13
Repository: https://github.com/alxarch/njson.git
Documentation: pkg.go.dev

# Functions

AppendMethod sets the tag key to use when parsing struct fields.
CanUnmarshal returns if can be unmarshaled.
ForceOmitEmpty forces omitempty on all fields regardless of json tag.
IsGeneratedByNJSON checks if a file begins with the njson generated header comment.
Logger sets a logger for the generator error messages.
MatchFieldName sets a regex for matching struct field names.
NewFromDir creates a new Generator for a package named targetPkg and parses the specified path.
NewFromFile creates a new Generator for a package named targetPkg and parses the specified file.
OmitMethod sets the tag key to use when parsing struct fields.
OnlyExported forces generator to ignore unexported fields.
OnlyTagged forces generator to ignore fields without a tag.
ParseFieldTag parses a field tag to get a json name and omitempty info.
TagKey sets the tag key to use when parsing struct fields.
TransformFieldCase sets a case transformation mode for field names when no tag based name is found.
UnmarshalMethod sets the tag key to use when parsing struct fields.

# Constants

DefaultTagKey is the default tag key to use when parsing stuct fields.

# Structs

Generator is a source code generator for njson unmarshal methods.

# Type aliases

Option is a generator option.