values

package
v0.0.0-...-b45a7ae Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Holder

type Holder interface {
	Keys() []string

	Get(name string) (interface{}, bool)

	MapTo(target interface{}) error
}

func AsHolder

func AsHolder(input interface{}) Holder

func NewStructValuesHolder

func NewStructValuesHolder(value interface{}) Holder

type Value

type Value interface{}

type Values

type Values map[string]Value

func (Values) Get

func (values Values) Get(name string) (interface{}, bool)

func (Values) Keys

func (values Values) Keys() []string

func (Values) MapTo

func (values Values) MapTo(target interface{}) error

TODO: cover with unit tests

Jump to

Keyboard shortcuts

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