Documentation
¶
Index ¶
- type Generic
- func (o *Generic) Get(t reflect.Kind) (data any, err error)
- func (o *Generic) GetAny() (data any, err error)
- func (o *Generic) GetBool() (data bool, err error)
- func (o *Generic) GetFloat() (data float64, err error)
- func (o *Generic) GetFloat32() (data float32, err error)
- func (o *Generic) GetFloat64() (data float64, err error)
- func (o *Generic) GetInt() (data int, err error)
- func (o *Generic) GetInt16() (data int16, err error)
- func (o *Generic) GetInt32() (data int32, err error)
- func (o *Generic) GetInt64() (data int64, err error)
- func (o *Generic) GetInt8() (data int8, err error)
- func (o *Generic) GetString() (data string, err error)
- func (o *Generic) GetUint() (data uint, err error)
- func (o *Generic) GetUint16() (data uint16, err error)
- func (o *Generic) GetUint32() (data uint32, err error)
- func (o *Generic) GetUint64() (data uint64, err error)
- func (o *Generic) GetUint8() (data uint8, err error)
- func (o *Generic) IsType(t reflect.Kind) bool
- func (o *Generic) Set(d any)
- func (o *Generic) Type() (t reflect.Kind)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generic ¶
type Generic struct {
// contains filtered or unexported fields
}
Generic - the Generic type structure for abstract work
func (*Generic) GetAny ¶
GetAny - blindly return the data from the object. (error is always nil, but it exists for future use)
func (*Generic) GetFloat32 ¶
GetFloat32 - return a float32 object or typecheck error
func (*Generic) GetFloat64 ¶
GetFloat64 - return float64 or typecheck error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.