package jsonopts
Import Path
encoding/json/internal/jsonopts (on go.dev)
Dependency Relation
imports 2 packages, and imported by 3 packages
Involved Source Files
options.go
Package-Level Type Names (total 8)
Format string
FormatDepth int
// jsonflags.Marshalers
// jsonflags.Unmarshalers
( ByteLimit) JSONOptions(internal.NotForPublicUse)
ByteLimit : Options
// jsonflags.ByteLimit
// jsonflags.DepthLimit
// jsonflags.Indent
// jsonflags.IndentPrefix
( DepthLimit) JSONOptions(internal.NotForPublicUse)
DepthLimit : Options
( Indent) JSONOptions(internal.NotForPublicUse)
Indent : Options
( IndentPrefix) JSONOptions(internal.NotForPublicUse)
IndentPrefix : Options
Options is the common options type shared across json packages.
JSONOptions is exported so related json packages can implement Options.
ByteLimit
DepthLimit
Indent
IndentPrefix
*Struct
encoding/json/internal/jsonflags.Bools
func GetOption[T](opts Options, setter func(T) Options) (T, bool)
func (*Struct).Join(srcs ...Options)
func (*Struct).JoinWithoutCoderOptions(srcs ...Options)
Struct is the combination of all options in struct form.
This is efficient to pass down the call stack and to query.
ArshalValues ArshalValues
ArshalValues.Format string
ArshalValues.FormatDepth int
// jsonflags.Marshalers
// jsonflags.Unmarshalers
CoderValues CoderValues
// jsonflags.ByteLimit
// jsonflags.DepthLimit
// jsonflags.Indent
// jsonflags.IndentPrefix
Flags jsonflags.Flags
(*Struct) JSONOptions(internal.NotForPublicUse)
(*Struct) Join(srcs ...Options)
(*Struct) JoinWithoutCoderOptions(srcs ...Options)
*Struct : Options
var DefaultOptionsV1
var DefaultOptionsV2
Package-Level Functions (only one)
Type Parameters:
T: any
Package-Level Variables (total 4)
DefaultOptionsV1 is the set of all options that define default v1 behavior.
DefaultOptionsV2 is the set of all options that define default v2 behavior.
GetUnknownOption is injected by the "json" package to handle Options
declared in that package so that "jsonopts" can handle them.
JoinUnknownOption is injected by the "json" package to handle Options
declared in that package so that "jsonopts" can handle them.
![]() |
The pages are generated with Golds v0.7.7-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |