vjson

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalIndentStruct

func MarshalIndentStruct(v any, prefix, indent string) ([]byte, error)

MarshalIndentStruct adds additional validation on top of json.MarshalIndent. Input type should be a struct pointer.

func MarshalStruct

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

MarshalStruct adds additional validation on top of json.Marshal. Input type should be a struct pointer.

func UnmarshalStruct

func UnmarshalStruct(jsonData []byte, v any) error

UnmarshalStruct adds additional validation on top of json.Unmarshal. Target object be a struct pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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