Documentation ¶
Index ¶
- Constants
- func Bits(t Type) int
- func IsBool(t Type) bool
- func IsInt(t Type) bool
- func IsList(t Type) bool
- func IsString(t Type) bool
- func IsStringList(t Type) bool
- func TypeAs[T Type](t Type) T
- type Any
- type Argument
- type Arguments
- type Bit
- type Bool
- type Byte
- type Char
- type Date
- type Enum
- type EnumValue
- type Error
- type Float
- type Int
- type JSON
- type List
- type Map
- type Method
- type Nil
- type Option
- type Range
- type Reference
- func (x *Reference) Default(string) any
- func (x *Reference) From(v any) any
- func (x *Reference) Key() string
- func (x *Reference) LastAddr(includePkg bool) string
- func (x *Reference) LastRef(includePkg bool) string
- func (x *Reference) Path() util.Pkg
- func (x *Reference) Scalar() bool
- func (x *Reference) Sortable() bool
- func (x *Reference) String() string
- type Set
- type String
- type Time
- type Timestamp
- type TimestampZoned
- type Type
- type Types
- type UUID
- type Unknown
- type ValueMap
- type Wrapped
- func FromReflect(t reflect.Type) *Wrapped
- func NewAny() *Wrapped
- func NewBit() *Wrapped
- func NewBool() *Wrapped
- func NewByte() *Wrapped
- func NewChar() *Wrapped
- func NewDate() *Wrapped
- func NewEnum(ref string) *Wrapped
- func NewEnumValue() *Wrapped
- func NewError(msg string) *Wrapped
- func NewFloat(bits int) *Wrapped
- func NewInt(bits int) *Wrapped
- func NewJSON() *Wrapped
- func NewJSONArgs(obj bool, arr bool) *Wrapped
- func NewList(t *Wrapped) *Wrapped
- func NewListSized(t *Wrapped, size int) *Wrapped
- func NewMap(k *Wrapped, v *Wrapped) *Wrapped
- func NewMethod(ret *Wrapped) *Wrapped
- func NewOption(t *Wrapped) *Wrapped
- func NewRange(t *Wrapped) *Wrapped
- func NewReference() *Wrapped
- func NewReferenceArgs(pkg util.Pkg, k string) *Wrapped
- func NewSet() *Wrapped
- func NewString() *Wrapped
- func NewStringArgs(minLength int, maxLength int, pattern string) *Wrapped
- func NewTime() *Wrapped
- func NewTimestamp() *Wrapped
- func NewTimestampZoned() *Wrapped
- func NewUUID() *Wrapped
- func NewUnknown(x string) *Wrapped
- func NewUnsignedInt(bits int) *Wrapped
- func NewValueMap() *Wrapped
- func NewXML() *Wrapped
- func Wrap(t Type) *Wrapped
- func (x *Wrapped) Default(key string) any
- func (x *Wrapped) EnumKey() string
- func (x *Wrapped) Equals(tgt *Wrapped) bool
- func (x *Wrapped) From(v any) any
- func (x *Wrapped) IsOption() bool
- func (x *Wrapped) Key() string
- func (x *Wrapped) ListType() *Wrapped
- func (x *Wrapped) MarshalJSON() ([]byte, error)
- func (x *Wrapped) Scalar() bool
- func (x *Wrapped) Sortable() bool
- func (x *Wrapped) String() string
- func (x *Wrapped) UnmarshalJSON(data []byte) error
- type XML
Constants ¶
View Source
const KeyAny = "any"
View Source
const KeyBit = "bit"
View Source
const KeyBool = "bool"
View Source
const KeyByte = "byte"
View Source
const KeyChar = "char"
View Source
const KeyDate = "date"
View Source
const KeyEnum = "enum"
View Source
const KeyEnumValue = "enumValue"
View Source
const KeyError = "error"
View Source
const KeyFloat = "float"
View Source
const KeyInt = "int"
View Source
const KeyJSON, _ = util.KeyJSON, "{}"
View Source
const KeyList = "list"
View Source
const KeyMap = "map"
View Source
const KeyMethod = "method"
View Source
const KeyNil = "nil"
View Source
const KeyOption = "option"
View Source
const KeyRange = "range"
View Source
const KeyReference = "reference"
View Source
const KeySet = "set"
View Source
const KeyString = "string"
View Source
const KeyTime = "time"
View Source
const KeyTimestamp = "timestamp"
View Source
const KeyTimestampZoned = "timestampZoned"
View Source
const KeyUUID = "uuid"
View Source
const KeyUnknown = "unknown"
View Source
const KeyValueMap = "valuemap"
View Source
const KeyXML = util.KeyXML
Variables ¶
This section is empty.
Functions ¶
func IsStringList ¶ added in v0.2.12
Types ¶
type String ¶
type TimestampZoned ¶
type TimestampZoned struct{}
func (*TimestampZoned) Default ¶
func (x *TimestampZoned) Default(string) any
func (*TimestampZoned) From ¶
func (x *TimestampZoned) From(v any) any
func (*TimestampZoned) Key ¶
func (x *TimestampZoned) Key() string
func (*TimestampZoned) Scalar ¶
func (x *TimestampZoned) Scalar() bool
func (*TimestampZoned) Sortable ¶
func (x *TimestampZoned) Sortable() bool
func (*TimestampZoned) String ¶
func (x *TimestampZoned) String() string
type Wrapped ¶
func FromReflect ¶
func NewEnumValue ¶
func NewEnumValue() *Wrapped
func NewJSONArgs ¶
func NewListSized ¶
func NewReference ¶
func NewReference() *Wrapped
func NewTimestamp ¶
func NewTimestamp() *Wrapped
func NewTimestampZoned ¶
func NewTimestampZoned() *Wrapped
func NewUnknown ¶
func NewUnsignedInt ¶
func NewValueMap ¶
func NewValueMap() *Wrapped
func (*Wrapped) MarshalJSON ¶
func (*Wrapped) UnmarshalJSON ¶
Source Files ¶
- any.go
- bit.go
- bool.go
- byte.go
- char.go
- date.go
- enum.go
- enumvalue.go
- error.go
- float.go
- int.go
- json.go
- list.go
- map.go
- method.go
- nil.go
- option.go
- range.go
- reference.go
- reflect.go
- set.go
- string.go
- time.go
- timestamp.go
- timestampzoned.go
- type.go
- unknown.go
- util.go
- uuid.go
- valuemap.go
- wrapped.go
- wrappedjson.go
- xml.go
Click to show internal directories.
Click to hide internal directories.