control

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViperDecoderHook

func ViperDecoderHook() libmap.DecodeHookFuncType

Types

type Mode

type Mode uint8
const (
	Ignore Mode = iota
	Should
	Must
	One
)

func Parse

func Parse(s string) Mode

func ParseBytes

func ParseBytes(p []byte) Mode

func ParseInt64

func ParseInt64(val int64) Mode

func (Mode) Code

func (c Mode) Code() string

func (Mode) MarshalCBOR

func (c Mode) MarshalCBOR() ([]byte, error)

func (Mode) MarshalJSON

func (c Mode) MarshalJSON() ([]byte, error)

func (Mode) MarshalTOML

func (c Mode) MarshalTOML() ([]byte, error)

func (Mode) MarshalText

func (c Mode) MarshalText() ([]byte, error)

func (Mode) MarshalYAML

func (c Mode) MarshalYAML() (interface{}, error)

func (Mode) String

func (c Mode) String() string

func (*Mode) UnmarshalCBOR

func (c *Mode) UnmarshalCBOR(bytes []byte) error

func (*Mode) UnmarshalJSON

func (c *Mode) UnmarshalJSON(bytes []byte) error

func (*Mode) UnmarshalTOML

func (c *Mode) UnmarshalTOML(i interface{}) error

func (*Mode) UnmarshalText

func (c *Mode) UnmarshalText(bytes []byte) error

func (*Mode) UnmarshalYAML

func (c *Mode) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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