Documentation ¶
Index ¶
- func PanicOnError(err error)
- type Boolean
- func (b Boolean) Cast(toPtr interface{})
- func (b Boolean) Compare(other TypedValue) TypeComparision
- func (b Boolean) Equals(other TypedValue) bool
- func (b Boolean) Kind() TypeKind
- func (b Boolean) NativeType() interface{}
- func (b Boolean) Precedence() int
- func (b Boolean) Ptr() TypedValue
- func (b Boolean) String() string
- type Datetime
- func (i Datetime) Cast(toPtr interface{})
- func (i Datetime) Compare(other TypedValue) TypeComparision
- func (i Datetime) Equals(other TypedValue) bool
- func (i Datetime) Kind() TypeKind
- func (i Datetime) NativeType() interface{}
- func (i Datetime) Precedence() int
- func (i Datetime) Ptr() TypedValue
- func (i Datetime) String() string
- type Decimal
- func (i Decimal) Cast(toPtr interface{})
- func (i Decimal) Compare(other TypedValue) TypeComparision
- func (i Decimal) Equals(other TypedValue) bool
- func (i Decimal) Kind() TypeKind
- func (i Decimal) NativeType() interface{}
- func (i Decimal) Precedence() int
- func (i Decimal) Ptr() TypedValue
- func (i Decimal) String() string
- type Integer
- func (i Integer) Cast(toPtr interface{})
- func (i Integer) Compare(other TypedValue) TypeComparision
- func (i Integer) Equals(other TypedValue) bool
- func (i Integer) Kind() TypeKind
- func (i Integer) NativeType() interface{}
- func (i Integer) Precedence() int
- func (i Integer) Ptr() TypedValue
- func (i Integer) String() string
- type MissingValue
- func (m MissingValue) Cast(toPtr interface{})
- func (m MissingValue) Compare(other TypedValue) TypeComparision
- func (m MissingValue) Equals(other TypedValue) bool
- func (m MissingValue) Kind() TypeKind
- func (b MissingValue) NativeType() interface{}
- func (m MissingValue) Precedence() int
- func (m MissingValue) Ptr() TypedValue
- func (m MissingValue) String() string
- type String
- func (i String) Cast(toPtr interface{})
- func (i String) Compare(other TypedValue) TypeComparision
- func (i String) Equals(other TypedValue) bool
- func (i String) Kind() TypeKind
- func (i String) NativeType() interface{}
- func (i String) Precedence() int
- func (i String) Ptr() TypedValue
- func (i String) String() string
- type TypeComparision
- type TypeKind
- type TypedValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicOnError ¶
func PanicOnError(err error)
Types ¶
type Boolean ¶
type Boolean bool
func (Boolean) Compare ¶
func (b Boolean) Compare(other TypedValue) TypeComparision
func (Boolean) Equals ¶
func (b Boolean) Equals(other TypedValue) bool
func (Boolean) NativeType ¶
func (b Boolean) NativeType() interface{}
func (Boolean) Precedence ¶
func (Boolean) Ptr ¶
func (b Boolean) Ptr() TypedValue
type Datetime ¶
func (Datetime) Compare ¶
func (i Datetime) Compare(other TypedValue) TypeComparision
func (Datetime) Equals ¶
func (i Datetime) Equals(other TypedValue) bool
func (Datetime) NativeType ¶
func (i Datetime) NativeType() interface{}
func (Datetime) Precedence ¶
func (Datetime) Ptr ¶
func (i Datetime) Ptr() TypedValue
type Decimal ¶
type Decimal float64
func (Decimal) Compare ¶
func (i Decimal) Compare(other TypedValue) TypeComparision
func (Decimal) Equals ¶
func (i Decimal) Equals(other TypedValue) bool
func (Decimal) NativeType ¶
func (i Decimal) NativeType() interface{}
func (Decimal) Precedence ¶
func (Decimal) Ptr ¶
func (i Decimal) Ptr() TypedValue
type Integer ¶
type Integer int64
func (Integer) Compare ¶
func (i Integer) Compare(other TypedValue) TypeComparision
func (Integer) Equals ¶
func (i Integer) Equals(other TypedValue) bool
func (Integer) NativeType ¶
func (i Integer) NativeType() interface{}
func (Integer) Precedence ¶
func (Integer) Ptr ¶
func (i Integer) Ptr() TypedValue
type MissingValue ¶
type MissingValue struct{}
var Missing MissingValue
func (MissingValue) Cast ¶
func (m MissingValue) Cast(toPtr interface{})
func (MissingValue) Compare ¶
func (m MissingValue) Compare(other TypedValue) TypeComparision
func (MissingValue) Equals ¶
func (m MissingValue) Equals(other TypedValue) bool
func (MissingValue) Kind ¶
func (m MissingValue) Kind() TypeKind
func (MissingValue) NativeType ¶
func (b MissingValue) NativeType() interface{}
func (MissingValue) Precedence ¶
func (m MissingValue) Precedence() int
func (MissingValue) Ptr ¶
func (m MissingValue) Ptr() TypedValue
func (MissingValue) String ¶
func (m MissingValue) String() string
type String ¶
type String string
func (String) Compare ¶
func (i String) Compare(other TypedValue) TypeComparision
func (String) Equals ¶
func (i String) Equals(other TypedValue) bool
func (String) NativeType ¶
func (i String) NativeType() interface{}
func (String) Precedence ¶
func (String) Ptr ¶
func (i String) Ptr() TypedValue
type TypeComparision ¶
type TypeComparision int
const ( Equals TypeComparision = 0 LeftIsBigger TypeComparision = 1 RightIsBigger TypeComparision = -1 )
type TypedValue ¶
type TypedValue interface { fmt.Stringer Equals(other TypedValue) bool Compare(other TypedValue) TypeComparision Cast(toPtr interface{}) Kind() TypeKind Ptr() TypedValue NativeType() interface{} Precedence() int }
func AutoCast ¶
func AutoCast(from TypedValue, to TypeKind) TypedValue
func Convert ¶
func Convert(value interface{}, kind TypeKind) TypedValue
Click to show internal directories.
Click to hide internal directories.