json

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalJSON

func MarshalJSON(src interface{}) ([]byte, error)

func UnmarshalBody

func UnmarshalBody(body io.Reader, req interface{}) error

func UnmarshalJSON

func UnmarshalJSON(src, dest interface{}) error

func UnmarshalYAML

func UnmarshalYAML(src, dest interface{}) error

Types

type Duration

type Duration struct {
	time.Duration
}

Duration is a duration that can be Marshal and Unmarshal

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() (b []byte, err error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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