Documentation ¶
Overview ¶
Package jtypes (golint)
Package jtypes provides types and utilities for third party extension functions.
Index ¶
- Variables
- func AsBool(v reflect.Value) (bool, bool)
- func AsNumber(v reflect.Value) (float64, bool)
- func AsString(v reflect.Value) (string, bool)
- func IsArray(v reflect.Value) bool
- func IsArrayOf(v reflect.Value, hasType func(reflect.Value) bool) bool
- func IsBool(v reflect.Value) bool
- func IsCallable(v reflect.Value) bool
- func IsMap(v reflect.Value) bool
- func IsNumber(v reflect.Value) bool
- func IsString(v reflect.Value) bool
- func IsStruct(v reflect.Value) bool
- func Resolve(v reflect.Value) reflect.Value
- type ArgHandler
- type Callable
- type Convertible
- type Optional
- type OptionalBool
- type OptionalCallable
- type OptionalFloat64
- type OptionalInt
- type OptionalInterface
- type OptionalString
- type OptionalValue
- type Variant
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TypeOptional (golint) TypeOptional = reflect.TypeOf((*Optional)(nil)).Elem() // TypeCallable (golint) TypeCallable = reflect.TypeOf((*Callable)(nil)).Elem() // TypeConvertible (golint) TypeConvertible = reflect.TypeOf((*Convertible)(nil)).Elem() // TypeVariant (golint) TypeVariant = reflect.TypeOf((*Variant)(nil)).Elem() // TypeValue (golint) TypeValue = reflect.TypeOf((*reflect.Value)(nil)).Elem() // TypeInterface (golint) TypeInterface = reflect.TypeOf((*interface{})(nil)).Elem() )
View Source
var ErrUndefined = errors.New("undefined")
ErrUndefined (golint)
Functions ¶
Types ¶
type ArgHandler ¶
ArgHandler (golint)
type Callable ¶
type Callable interface { Name() string ParamCount() int Call([]reflect.Value) (reflect.Value, error) }
Callable (golint)
type Convertible ¶
Convertible (golint)
type OptionalBool ¶
type OptionalBool struct { Bool bool // contains filtered or unexported fields }
OptionalBool (golint)
type OptionalCallable ¶
type OptionalCallable struct { Callable Callable // contains filtered or unexported fields }
OptionalCallable (golint)
func NewOptionalCallable ¶
func NewOptionalCallable(value Callable) OptionalCallable
NewOptionalCallable (golint)
type OptionalFloat64 ¶
type OptionalFloat64 struct { Float64 float64 // contains filtered or unexported fields }
OptionalFloat64 (golint)
func NewOptionalFloat64 ¶
func NewOptionalFloat64(value float64) OptionalFloat64
NewOptionalFloat64 (golint)
type OptionalInt ¶
type OptionalInt struct { Int int // contains filtered or unexported fields }
OptionalInt (golint)
type OptionalInterface ¶
type OptionalInterface struct { Interface interface{} // contains filtered or unexported fields }
OptionalInterface (golint)
func NewOptionalInterface ¶
func NewOptionalInterface(value interface{}) OptionalInterface
NewOptionalInterface (golint)
type OptionalString ¶
type OptionalString struct { String string // contains filtered or unexported fields }
OptionalString (golint)
func NewOptionalString ¶
func NewOptionalString(value string) OptionalString
NewOptionalString (golint)
type OptionalValue ¶
OptionalValue (golint)
func NewOptionalValue ¶
func NewOptionalValue(value reflect.Value) OptionalValue
NewOptionalValue (golint)
Click to show internal directories.
Click to hide internal directories.