Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Key string Init string OmitEmpty string TimeLayout string NullType string Name string Accessor string Mutator string Receiver string //alias and type name Alias string //object alias name Var string //variable for this field Type string RawType string HelperType string ComponentType string RawComponentType string IsPointerComponent bool PointerModifier string //takes field pointer, "&" if field is not a pointer type DereferenceModifier string //take pointer value, i.e "*" if field has a pointer type ComponentPointerModifier string //takes item pointer if needed,i.e ComponentDereferenceModifier string //de reference value if needed, i.e ComponentInitModifier string //takes item pointer if type is not a pointer type ComponentInit string //initialises component type DecodingMethod string EncodingMethod string PoolName string //pool name associated with this field ResetDependency string Reset string IsAnonymous bool IsPointer bool IsSlice bool GojayMethod string }
Field represents a field.
type Generator ¶
type Generator struct { Pkg string Code string Init string Imports string // contains filtered or unexported fields }
Generator holds the content to generate the gojay code
func NewGenerator ¶
NewGenerator creates a new generator with the given options
type Options ¶
type Options struct { Source string Dest string Types []string PoolObjects bool TagName string Pkg string }
func NewOptionsWithFlagSet ¶
NewOptionsWithFlagSet creates a new options for the supplide flagset
Source Files ¶
Click to show internal directories.
Click to hide internal directories.