types

package
v0.0.0-...-f33f84d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package types provides a framework for our language values and types.

Index

Constants

This section is empty.

Variables

View Source
var (
	TypeBool    = NewType("bool")
	TypeStr     = NewType("str")
	TypeInt     = NewType("int")
	TypeFloat   = NewType("float")
	TypeVariant = NewType("variant")
)

Basic types defined here as a convenience for use with Type.Cmp(X).

Functions

This section is empty.

Types

type BoolValue

type BoolValue struct {
	V bool
	// contains filtered or unexported fields
}

BoolValue represents a boolean value.

func NewBool

func NewBool() *BoolValue

NewBool creates a new boolean value.

func (*BoolValue) Bool

func (obj *BoolValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*BoolValue) Cmp

func (obj *BoolValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*BoolValue) Copy

func (obj *BoolValue) Copy() Value

Copy returns a copy of this value.

func (*BoolValue) Float

func (obj *BoolValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*BoolValue) Func

func (obj *BoolValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*BoolValue) Int

func (obj *BoolValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*BoolValue) Less

func (obj *BoolValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*BoolValue) List

func (obj *BoolValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*BoolValue) Map

func (obj *BoolValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*BoolValue) Str

func (obj *BoolValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*BoolValue) String

func (obj *BoolValue) String() string

String returns a visual representation of this value.

func (*BoolValue) Struct

func (obj *BoolValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*BoolValue) Type

func (obj *BoolValue) Type() *Type

Type returns the type data structure that represents this type.

func (*BoolValue) Value

func (obj *BoolValue) Value() interface{}

Value returns the raw value of this type.

type FloatValue

type FloatValue struct {
	V float64
	// contains filtered or unexported fields
}

FloatValue represents an integer value.

func NewFloat

func NewFloat() *FloatValue

NewFloat creates a new float value.

func (*FloatValue) Bool

func (obj *FloatValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*FloatValue) Cmp

func (obj *FloatValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*FloatValue) Copy

func (obj *FloatValue) Copy() Value

Copy returns a copy of this value.

func (*FloatValue) Float

func (obj *FloatValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*FloatValue) Func

func (obj *FloatValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*FloatValue) Int

func (obj *FloatValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*FloatValue) Less

func (obj *FloatValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*FloatValue) List

func (obj *FloatValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*FloatValue) Map

func (obj *FloatValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*FloatValue) Str

func (obj *FloatValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*FloatValue) String

func (obj *FloatValue) String() string

String returns a visual representation of this value.

func (*FloatValue) Struct

func (obj *FloatValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*FloatValue) Type

func (obj *FloatValue) Type() *Type

Type returns the type data structure that represents this type.

func (*FloatValue) Value

func (obj *FloatValue) Value() interface{}

Value returns the raw value of this type.

type FuncValue

type FuncValue struct {
	V func([]Value) (Value, error)
	T *Type // contains ordered field types, arg names are a bonus part
	// contains filtered or unexported fields
}

FuncValue represents a function value. The defined function takes a list of Value arguments and returns a Value. It can also return an error which could represent that something went horribly wrong. (Think, an internal panic.)

func NewFunc

func NewFunc(t *Type) *FuncValue

NewFunc creates a new function with the specified type.

func (*FuncValue) Bool

func (obj *FuncValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*FuncValue) Call

func (obj *FuncValue) Call(args []Value) (Value, error)

Call runs the function value and returns its result. It returns an error if something goes wrong during execution, and panic's if you call this with inappropriate input types, or if it returns an inappropriate output type.

func (*FuncValue) Cmp

func (obj *FuncValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*FuncValue) Copy

func (obj *FuncValue) Copy() Value

Copy returns a copy of this value.

func (*FuncValue) Float

func (obj *FuncValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*FuncValue) Func

func (obj *FuncValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*FuncValue) Int

func (obj *FuncValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*FuncValue) Less

func (obj *FuncValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*FuncValue) List

func (obj *FuncValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*FuncValue) Map

func (obj *FuncValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*FuncValue) Set

func (obj *FuncValue) Set(fn func([]Value) (Value, error))

Set sets the function value to be a new function.

func (*FuncValue) Str

func (obj *FuncValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*FuncValue) String

func (obj *FuncValue) String() string

String returns a visual representation of this value.

func (*FuncValue) Struct

func (obj *FuncValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*FuncValue) Type

func (obj *FuncValue) Type() *Type

Type returns the type data structure that represents this type.

func (*FuncValue) Value

func (obj *FuncValue) Value() interface{}

Value returns the raw value of this type.

type IntValue

type IntValue struct {
	V int64
	// contains filtered or unexported fields
}

IntValue represents an integer value.

func NewInt

func NewInt() *IntValue

NewInt creates a new int value.

func (*IntValue) Bool

func (obj *IntValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*IntValue) Cmp

func (obj *IntValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*IntValue) Copy

func (obj *IntValue) Copy() Value

Copy returns a copy of this value.

func (*IntValue) Float

func (obj *IntValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*IntValue) Func

func (obj *IntValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*IntValue) Int

func (obj *IntValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*IntValue) Less

func (obj *IntValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*IntValue) List

func (obj *IntValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*IntValue) Map

func (obj *IntValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*IntValue) Str

func (obj *IntValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*IntValue) String

func (obj *IntValue) String() string

String returns a visual representation of this value.

func (*IntValue) Struct

func (obj *IntValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*IntValue) Type

func (obj *IntValue) Type() *Type

Type returns the type data structure that represents this type.

func (*IntValue) Value

func (obj *IntValue) Value() interface{}

Value returns the raw value of this type.

type Kind

type Kind int // this used to be called Type

The Kind represents the base type of each value.

const (
	KindNil Kind = iota
	KindBool
	KindStr
	KindInt
	KindFloat
	KindList
	KindMap
	KindStruct
	KindFunc
	KindVariant
)

Each Kind represents a type in the language type system.

type ListValue

type ListValue struct {
	V []Value // all elements must have type T.Val
	T *Type
	// contains filtered or unexported fields
}

ListValue represents a list value.

func NewList

func NewList(t *Type) *ListValue

NewList creates a new list with the specified list type.

func (*ListValue) Add

func (obj *ListValue) Add(v Value) error

Add adds an element to this list. It errors if the type does not match.

func (*ListValue) Bool

func (obj *ListValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*ListValue) Cmp

func (obj *ListValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*ListValue) Contains

func (obj *ListValue) Contains(v Value) (index int, exists bool)

Contains searches for a value in the list. On success it returns the index.

func (*ListValue) Copy

func (obj *ListValue) Copy() Value

Copy returns a copy of this value.

func (*ListValue) Float

func (obj *ListValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*ListValue) Func

func (obj *ListValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*ListValue) Int

func (obj *ListValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*ListValue) Less

func (obj *ListValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*ListValue) List

func (obj *ListValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*ListValue) Lookup

func (obj *ListValue) Lookup(index int) (value Value, exists bool)

Lookup looks up a value by index. On success it also returns the Value.

func (*ListValue) Map

func (obj *ListValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*ListValue) Str

func (obj *ListValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*ListValue) String

func (obj *ListValue) String() string

String returns a visual representation of this value.

func (*ListValue) Struct

func (obj *ListValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*ListValue) Type

func (obj *ListValue) Type() *Type

Type returns the type data structure that represents this type.

func (*ListValue) Value

func (obj *ListValue) Value() interface{}

Value returns the raw value of this type.

type MapValue

type MapValue struct {

	// the types of all keys and values are represented inside of T
	V map[Value]Value
	T *Type
	// contains filtered or unexported fields
}

MapValue represents a dictionary value.

func NewMap

func NewMap(t *Type) *MapValue

NewMap creates a new map with the specified map type.

func (*MapValue) Add

func (obj *MapValue) Add(k, v Value) error

Add adds an element to this map. It errors if the types do not match.

func (*MapValue) Bool

func (obj *MapValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*MapValue) Cmp

func (obj *MapValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*MapValue) Copy

func (obj *MapValue) Copy() Value

Copy returns a copy of this value.

func (*MapValue) Float

func (obj *MapValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*MapValue) Func

func (obj *MapValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*MapValue) Int

func (obj *MapValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*MapValue) Less

func (obj *MapValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*MapValue) List

func (obj *MapValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*MapValue) Lookup

func (obj *MapValue) Lookup(key Value) (value Value, exists bool)

Lookup searches the map for a key. On success it also returns the Value.

func (*MapValue) Map

func (obj *MapValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*MapValue) Str

func (obj *MapValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*MapValue) String

func (obj *MapValue) String() string

String returns a visual representation of this value.

func (*MapValue) Struct

func (obj *MapValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*MapValue) Type

func (obj *MapValue) Type() *Type

Type returns the type data structure that represents this type.

func (*MapValue) Value

func (obj *MapValue) Value() interface{}

Value returns the raw value of this type.

type StrValue

type StrValue struct {
	V string
	// contains filtered or unexported fields
}

StrValue represents a string value.

func NewStr

func NewStr() *StrValue

NewStr creates a new string value.

func (*StrValue) Bool

func (obj *StrValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*StrValue) Cmp

func (obj *StrValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*StrValue) Copy

func (obj *StrValue) Copy() Value

Copy returns a copy of this value.

func (*StrValue) Float

func (obj *StrValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*StrValue) Func

func (obj *StrValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*StrValue) Int

func (obj *StrValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*StrValue) Less

func (obj *StrValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*StrValue) List

func (obj *StrValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*StrValue) Map

func (obj *StrValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*StrValue) Str

func (obj *StrValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*StrValue) String

func (obj *StrValue) String() string

String returns a visual representation of this value.

func (*StrValue) Struct

func (obj *StrValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*StrValue) Type

func (obj *StrValue) Type() *Type

Type returns the type data structure that represents this type.

func (*StrValue) Value

func (obj *StrValue) Value() interface{}

Value returns the raw value of this type.

type StructValue

type StructValue struct {
	V map[string]Value // each field can have a different type
	T *Type            // contains ordered field types
	// contains filtered or unexported fields
}

StructValue represents a struct value. The keys are ordered. TODO: if all functions require arg names to call, we don't need to order!

func NewStruct

func NewStruct(t *Type) *StructValue

NewStruct creates a new struct with the specified field types.

func (*StructValue) Bool

func (obj *StructValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*StructValue) Cmp

func (obj *StructValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*StructValue) Copy

func (obj *StructValue) Copy() Value

Copy returns a copy of this value.

func (*StructValue) Float

func (obj *StructValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*StructValue) Func

func (obj *StructValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*StructValue) Int

func (obj *StructValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*StructValue) Less

func (obj *StructValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same.

func (*StructValue) List

func (obj *StructValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*StructValue) Lookup

func (obj *StructValue) Lookup(k string) (value Value, exists bool)

Lookup searches the struct for a key. On success it also returns the Value.

func (*StructValue) Map

func (obj *StructValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*StructValue) Set

func (obj *StructValue) Set(k string, v Value) error

Set sets a field to this value. It errors if the types do not match.

func (*StructValue) Str

func (obj *StructValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*StructValue) String

func (obj *StructValue) String() string

String returns a visual representation of this value.

func (*StructValue) Struct

func (obj *StructValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*StructValue) Type

func (obj *StructValue) Type() *Type

Type returns the type data structure that represents this type.

func (*StructValue) Value

func (obj *StructValue) Value() interface{}

Value returns the raw value of this type.

type Type

type Type struct {
	Kind Kind

	Val *Type            // if Kind == List, use Val only
	Key *Type            // if Kind == Map, use Val and Key
	Map map[string]*Type // if Kind == Struct, use Map and Ord (for order)
	Ord []string
	Out *Type // if Kind == Func, use Map and Ord for Input, Out for Output
	Var *Type // if Kind == Variant, use Var only
}

Type is the datastructure representing any type. It can be recursive for container types like lists, maps, and structs. TODO: should we create a `Type` interface?

func NewType

func NewType(s string) *Type

NewType creates the Type from the string representation.

func TypeOf

func TypeOf(t reflect.Type) (*Type, error)

TypeOf takes a reflect.Type and returns an equivalent *Type. It removes any pointers since our language does not support pointers. It returns nil if it cannot represent the type in our type system. Common examples of things it cannot express include reflect.Invalid, reflect.Interface, Reflect.Complex128 and more. It is not reversible because some information may be either added or lost. For example, reflect.Array and reflect.Slice are both converted to a Type of KindList, and KindFunc names the arguments of a func sequentially. The lossy inverse of this is Reflect.

func (*Type) Cmp

func (obj *Type) Cmp(typ *Type) error

Cmp compares this type to another.

func (*Type) Copy

func (obj *Type) Copy() *Type

Copy copies this type so that inplace modification won't affect the original.

func (*Type) HasVariant

func (obj *Type) HasVariant() bool

HasVariant tells us if the type contains any mention of the Variant type.

func (*Type) New

func (obj *Type) New() Value

New creates a new Value of this type.

func (*Type) Reflect

func (obj *Type) Reflect() reflect.Type

Reflect returns a representative type satisfying the golang Type Interface. The lossy inverse of this is TypeOf.

func (*Type) String

func (obj *Type) String() string

String returns the textual representation for this type.

func (*Type) Underlying

func (obj *Type) Underlying() *Type

Underlying returns the underlying type of the type in question. For variants, this unpacks them recursively, for everything else this returns itself.

type Value

type Value interface {
	fmt.Stringer // String() string (for display purposes)
	Type() *Type
	Less(Value) bool // to find the smaller of the two values (for sort)
	Cmp(Value) error // error if the two values aren't the same
	Copy() Value     // returns a copy of this value
	Value() interface{}
	Bool() bool
	Str() string
	Int() int64
	Float() float64
	List() []Value
	Map() map[Value]Value // keys must all have same type, same for values
	Struct() map[string]Value
	Func() func([]Value) (Value, error)
}

Value represents an interface to get values out of each type. It is similar to the reflection interfaces used in the golang standard library.

func ValueOf

func ValueOf(v reflect.Value) (Value, error)

ValueOf takes a reflect.Value and returns an equivalent Value.

type ValueSlice

type ValueSlice []Value

ValueSlice is a linear list of values. It is used for sorting purposes.

func (ValueSlice) Len

func (vs ValueSlice) Len() int

func (ValueSlice) Less

func (vs ValueSlice) Less(i, j int) bool

func (ValueSlice) Swap

func (vs ValueSlice) Swap(i, j int)

type VariantValue

type VariantValue struct {
	V Value // formerly I experimented with using interface{} instead
	T *Type
	// contains filtered or unexported fields
}

VariantValue represents a variant value.

func NewVariant

func NewVariant(t *Type) *VariantValue

NewVariant creates a new variant value. TODO: I haven't thought about this thoroughly yet.

func (*VariantValue) Bool

func (obj *VariantValue) Bool() bool

Bool represents the value of this type as a bool if it is one. If this is not a bool, then this panics.

func (*VariantValue) Cmp

func (obj *VariantValue) Cmp(val Value) error

Cmp returns an error if this value isn't the same as the arg passed in.

func (*VariantValue) Copy

func (obj *VariantValue) Copy() Value

Copy returns a copy of this value.

func (*VariantValue) Float

func (obj *VariantValue) Float() float64

Float represents the value of this type as a float if it is one. If this is not a float, then this panics.

func (*VariantValue) Func

func (obj *VariantValue) Func() func([]Value) (Value, error)

Func represents the value of this type as a function if it is one. If this is not a function, then this panics.

func (*VariantValue) Int

func (obj *VariantValue) Int() int64

Int represents the value of this type as an integer if it is one. If this is not an integer, then this panics.

func (*VariantValue) Less

func (obj *VariantValue) Less(v Value) bool

Less compares to value and returns true if we're smaller. This panics if the two types aren't the same. For variants, the two sub types must be the same.

func (*VariantValue) List

func (obj *VariantValue) List() []Value

List represents the value of this type as a list if it is one. If this is not a list, then this panics.

func (*VariantValue) Map

func (obj *VariantValue) Map() map[Value]Value

Map represents the value of this type as a dictionary if it is one. If this is not a map, then this panics.

func (*VariantValue) Str

func (obj *VariantValue) Str() string

Str represents the value of this type as a string if it is one. If this is not a string, then this panics.

func (*VariantValue) String

func (obj *VariantValue) String() string

String returns a visual representation of this value.

func (*VariantValue) Struct

func (obj *VariantValue) Struct() map[string]Value

Struct represents the value of this type as a struct if it is one. If this is not a struct, then this panics.

func (*VariantValue) Type

func (obj *VariantValue) Type() *Type

Type returns the type data structure that represents this type.

func (*VariantValue) Value

func (obj *VariantValue) Value() interface{}

Value returns the raw value of this type.

Jump to

Keyboard shortcuts

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