mapper

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilter

func ApplyFilter(node query.Node, v interface{}, mapname ...MapName) bool

func BoolValue

func BoolValue(path string, v interface{}, mapname ...MapName) (bool, bool)

func Float32Value

func Float32Value(path string, v interface{}, mapname ...MapName) (float32, bool)

func Float64Value

func Float64Value(path string, v interface{}, mapname ...MapName) (float64, bool)

func Int16Value

func Int16Value(path string, v interface{}, mapname ...MapName) (int16, bool)

func Int32Value

func Int32Value(path string, v interface{}, mapname ...MapName) (int32, bool)

func Int64Value

func Int64Value(path string, v interface{}, mapname ...MapName) (int64, bool)

func Int8Value

func Int8Value(path string, v interface{}, mapname ...MapName) (int8, bool)

func IntValue

func IntValue(path string, v interface{}, mapname ...MapName) (int, bool)

func StringValue

func StringValue(path string, v interface{}, mapname ...MapName) (string, bool)

func TimeValue

func TimeValue(path string, v interface{}, mapname ...MapName) (time.Time, bool)

func Transform

func Transform(v interface{}, mapname ...MapName) (map[string]interface{}, error)

func Uint16Value

func Uint16Value(path string, v interface{}, mapname ...MapName) (uint16, bool)

func Uint32Value

func Uint32Value(path string, v interface{}, mapname ...MapName) (uint32, bool)

func Uint64Value

func Uint64Value(path string, v interface{}, mapname ...MapName) (uint64, bool)

func Uint8Value

func Uint8Value(path string, v interface{}, mapname ...MapName) (uint8, bool)

func UintValue

func UintValue(path string, v interface{}, mapname ...MapName) (uint, bool)

func Value

func Value(path string, v interface{}, mapname ...MapName) (interface{}, bool)

Types

type MapName

type MapName struct {
	From string
	To   string
}

func Map

func Map(from, to string) MapName

Jump to

Keyboard shortcuts

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