Versions in this module Expand all Collapse all v0 v0.1.0 Jun 9, 2023 Changes in this version + func GetOptArg(opts []interface{}, defaultValue ...interface{}) interface + func GetOptBoolArg(opts []bool, defaultValue ...bool) bool + func GetOptInt32Arg(opts []int32, defaultValue ...int32) int32 + func GetOptInt64Arg(opts []int64, defaultValue ...int64) int64 + func GetOptIntArg(opts []int, defaultValue ...int) int + func GetOptStringArg(opts []string, defaultValue ...string) string + func UIntPtr(i uint) *uint + func UIntPtr32(i uint32) *uint32 + func UIntPtr64(i uint64) *uint64 + type Bool bool + func (b Bool) ToBoolPtr() *bool + func (b Bool) ToInt() int + func (b Bool) ToString() string + type BoolPtr struct + func (p *BoolPtr) Scan(value interface{}) error + func (p BoolPtr) Value() (driver.Value, error) + type Int int + func (i Int) ToBool() bool + func (i Int) ToInt() int + func (i Int) ToInt16() int16 + func (i Int) ToInt16Ptr() *int16 + func (i Int) ToInt32() int32 + func (i Int) ToInt32Ptr() *int32 + func (i Int) ToInt64() int64 + func (i Int) ToInt64Ptr() *int64 + func (i Int) ToIntPtr() *int + func (i Int) ToString() string + type Int16Ptr struct + func (p *Int16Ptr) Scan(value interface{}) error + func (p Int16Ptr) Value() (driver.Value, error) + type Int32Arr []int32 + func (a Int32Arr) ToIntArr() []int + type Int32Ptr struct + func (p *Int32Ptr) Scan(value interface{}) error + func (p Int32Ptr) Value() (driver.Value, error) + type Int64Arr []int64 + func (a Int64Arr) ToIntArr() []int + type Int64Ptr struct + func (p *Int64Ptr) Scan(value interface{}) error + func (p Int64Ptr) Value() (driver.Value, error) + type IntArr []int + func (a IntArr) ToInt32Arr() []int32 + func (a IntArr) ToInt32PtrArr() []*int32 + func (a IntArr) ToInt64Arr() []int64 + func (a IntArr) ToInt64PtrArr() []*int64 + type IntPtr struct + func (p *IntPtr) Scan(value interface{}) error + func (p IntPtr) Value() (driver.Value, error) + type String string + func (s String) MaskLeft(NLeft int, char rune) string + func (s String) MaskRight(NLeft int, char rune) string + func (s String) MustToBool() bool + func (s String) MustToInt() int + func (s String) ToBool() (bool, error) + func (s String) ToInt() (int, error) + func (s String) ToIntArr(separator ...string) ([]int, error) + func (s String) ToStringArr(separator ...string) ([]string, error) + func (s String) ToStringPtr() *string + type StringPtr struct + func (p *StringPtr) Scan(value interface{}) error + func (p StringPtr) Value() (driver.Value, error) + type UInt uint + func (u UInt) ToBool() (bool, error) + func (u UInt) ToString() (string, error) + func (u UInt) ToUInt() uint + func (u UInt) ToUInt32() uint32 + func (u UInt) ToUInt64() uint64 + func (u UInt) ToUIntPtr() *uint + func (u UInt) ToUIntPtr32() *uint32 + func (u UInt) ToUIntPtr64() *uint64