Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileOption ¶
type CompileOption func(o *CompileOptions)
func WithCompileRecursiveDepth ¶
func WithCompileRecursiveDepth(depth int) CompileOption
WithCompileRecursiveDepth sets the depth of recursive compile in decoder or encoder.
Default value(0) is suitable for basic types and small nested struct types.
For large or deep nested struct, try to set larger depth to reduce compile time in the first Marshal or Unmarshal.
type CompileOptions ¶
type CompileOptions struct { // the depth for recursive compile RecursiveDepth int }
CompileOptions includes all options for encoder or decoder compiler.
func DefaultCompileOptions ¶
func DefaultCompileOptions() CompileOptions
Click to show internal directories.
Click to hide internal directories.