djson

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, val interface{})

Unmarshal will try to load JSON from the given data into val. It'll read from the struct tags of the given val and look for the 'djson' tag which can supply multiple possible fields a JSON key can be. If a json key match with any of the tags it'll set the value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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