jsonx

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Marshal

func Marshal(v any) ([]byte, error)

func RegisterCustomAnnotation

func RegisterCustomAnnotation(annotationName string, validateFunc definitions.AnnotationValidate) error

func RegisterFieldError added in v1.0.4

func RegisterFieldError(errorName, msg string)

func RegisterOrderedValidator

func RegisterOrderedValidator[T any](v validate.OrderedValidator[T])

func RegisterValidator

func RegisterValidator[T any](v validate.Validator[T])

func Unmarshal

func Unmarshal[V any](data []byte) (*V, error)

func Validate added in v1.0.3

func Validate[T any](v T) error

Validate don't input pointer type

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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