dynstruct

package module
v0.0.0-...-4d99ce9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Define

func Define(name string) *definer

Types

type DynStruct

type DynStruct struct {
	// contains filtered or unexported fields
}

func (*DynStruct) New

func (ds *DynStruct) New() Value

func (*DynStruct) NewFromMap

func (ds *DynStruct) NewFromMap(m map[string]interface{}) (Value, error)

func (*DynStruct) NewFromMapStrictly

func (ds *DynStruct) NewFromMapStrictly(m map[string]interface{}) (Value, error)

func (*DynStruct) NewFromMapUnsafely

func (ds *DynStruct) NewFromMapUnsafely(m map[string]interface{}) Value

func (DynStruct) String

func (ds DynStruct) String() string

type Value

type Value struct {
	// contains filtered or unexported fields
}

func (Value) Copy

func (v Value) Copy() Value

func (Value) Format

func (v Value) Format(f fmt.State, c rune)

func (Value) Get

func (v Value) Get(field string) interface{}

func (Value) MarshalJSON

func (v Value) MarshalJSON() ([]byte, error)

func (Value) Scan

func (v Value) Scan(field string, val interface{})

func (Value) Set

func (v Value) Set(field string, val interface{})

func (Value) UncheckGet

func (v Value) UncheckGet(field string) interface{}

func (Value) UncheckScan

func (v Value) UncheckScan(field string, val interface{})

func (Value) UncheckSet

func (v Value) UncheckSet(field string, value interface{})

func (*Value) UnmarshalJSON

func (v *Value) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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