internal

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("key not found")

Functions

func DecodeAs

func DecodeAs(source, target any, codec flu.Codec) error

func DecodeAsYAML

func DecodeAsYAML(source, target any) error

func SpecifyType

func SpecifyType(v any) (any, bool)

SpecifyType tries to convert the value to most specific primitive type (int64, float64, bool, or string). If it fails, it returns the input value as is.

Types

type AnyMap

type AnyMap map[any]any

func AnyMapFrom

func AnyMapFrom(from Map) AnyMap

func (AnyMap) As

func (m AnyMap) As(v any, path ...any) error

func (AnyMap) Map

func (m AnyMap) Map() Map

func (AnyMap) MarshalJSON

func (m AnyMap) MarshalJSON() ([]byte, error)

func (AnyMap) Merge

func (m AnyMap) Merge(another AnyMap)

func (AnyMap) SpecifyTypes

func (m AnyMap) SpecifyTypes()

func (*AnyMap) UnmarshalJSON

func (m *AnyMap) UnmarshalJSON(data []byte) error

type Map

type Map = map[string]any

Jump to

Keyboard shortcuts

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