unmarshal

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(v any, tag string, fn func(dest reflect.Value, name string, value []string) error) error

func WithJson

func WithJson(r io.Reader, dest any) ([]string, error)

Decode with a io.Reader which contains JSON and unmarshal into dest. Return the fields which were set (for patching)

func WithQuery

func WithQuery(q url.Values, dest any) ([]string, error)

Decode with a url query q and unmarshal into dest. Return the fields which were set (for patching) from the query

Types

This section is empty.

Jump to

Keyboard shortcuts

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