param

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Copy added in v0.0.9

type Copy struct {
	Zero     bool
	Squash   bool
	Tag      string
	Unused   bool
	Unset    bool
	Untagged bool

	From any
	To   any

	Hooks  []mapstructure.DecodeHookFunc
	Weakly bool
}

func NewCopy added in v0.0.9

func NewCopy() (copy *Copy)

type Time added in v0.1.0

type Time struct {
	// contains filtered or unexported fields
}

func NewTime added in v0.1.0

func NewTime(params *Copy) *Time

func (*Time) DurationToPB added in v0.1.0

func (t *Time) DurationToPB(ft reflect.Type, tt reflect.Type, from any) (to any, err error)

func (*Time) PBToDuration added in v0.1.0

func (t *Time) PBToDuration(ft reflect.Type, tt reflect.Type, from any) (to any, err error)

func (*Time) PBToTime added in v0.1.0

func (t *Time) PBToTime(ft reflect.Type, tt reflect.Type, from any) (to any, err error)

func (*Time) TimeToPB added in v0.1.0

func (t *Time) TimeToPB(ft reflect.Type, tt reflect.Type, from any) (to any, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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