jsondecoder

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExtraDataAfterDecoding = errors.New("extra data after decoding")
	ErrUnknownField           = errors.New("unknown field in JSON input")
)

Functions

func UnmarshalDisallowUnknownFields

func UnmarshalDisallowUnknownFields(data []byte, v any) error

UnmarshalDisallowUnknownFields parses the JSON-encoded data and stores the result in the value pointed to by v like json.Unmarshal, but with DisallowUnknownFields() set by default for extra security.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL