jsonhelper

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAndDecodeDisallowUnknownFields

func LoadAndDecodeDisallowUnknownFields(path string, v any) error

Types

type Duration added in v1.8.0

type Duration time.Duration

Duration is time.Duration but implements encoding.TextMarshaler and encoding.TextUnmarshaler.

func (Duration) MarshalText added in v1.8.0

func (d Duration) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.MarshalText.

func (*Duration) UnmarshalText added in v1.8.0

func (d *Duration) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.UnmarshalText.

Jump to

Keyboard shortcuts

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