val

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value interface {
	BoolE() (bool, error)
	Int64E() (int64, error)
	Float64E() (float64, error)
	StringE() (string, error)
	DurationE() (time.Duration, error)
	SliceE() ([]interface{}, error)
	SliceStringE() ([]string, error)

	Bool() bool
	Int64() int64
	Float64() float64
	String() string
	Duration() time.Duration
	Slice() []interface{}
	SliceString() []string

	BoolD(d bool) bool
	Int64D(d int64) int64
	Float64D(d float64) float64
	StringD(d string) string
	DurationD(d time.Duration) time.Duration
	SliceD(d []interface{}) []interface{}
	SliceStringD(d []string) []string
}

func New

func New(v interface{}) Value

Jump to

Keyboard shortcuts

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