Documentation
¶
Index ¶
- Variables
- func Any2Int64(value interface{}) int64
- func Any2Str(value interface{}) string
- func Autowired(some any) error
- func CheckCrc(cmd []byte, data []byte, pos int, dlen int) bool
- func CheckType(i interface{}) string
- func ContainsStru[T any](someStru interface{}) bool
- func ContainsStruPtr(someStru, childStru any) bool
- func DesDec(c []byte, key []byte) ([]byte, error)
- func DesEnc(c []byte, key []byte) ([]byte, error)
- func FieldsFunc(fieldsName string) []string
- func FindNameOfIface(iface any) string
- func FindPkgNameOfIface(iface any) string
- func FindStruNilPtrFields(Stru any) []reflect.StructField
- func FindStructFields(v any) []reflect.StructField
- func FmtPrintLn(a ...interface{})
- func FormatDatetime(t time.Time) string
- func FormatNow() string
- func GetAllFields(i any) []string
- func GetBool(v bool) *bool
- func GetBool2Ptr(v bool) *bool
- func GetBoolPtr(v bool) *bool
- func GetInt(v int) *int
- func GetInt8(v int8) *int8
- func GetInt16(v int16) *int16
- func GetInt32(v int32) *int32
- func GetInt32Ptr(v int32) *int32
- func GetInt64(v int64) *int64
- func GetInt64Ptr(v int64) *int64
- func GetPtr2Int32(v *int32) int32
- func GetPtr2Int64(v *int64) int64
- func GetPtr2Str(v *string) string
- func GetString(v string) *string
- func GetStringPtr(v string) *string
- func GetTime(v time.Time) *time.Time
- func GetTimeNow() int64
- func IfBaseModel(some any) (baseiface.IbaseModel, bool)
- func IfIface[T any](some any) bool
- func IfInterface[T any](some any) (T, bool)
- func IfLinux() bool
- func IfNilPtrChild(Stru any, feild string) bool
- func IfProxy(some any) bool
- func IfProxyInitProxy(some any) bool
- func IfPtr(v any) bool
- func IfPtrNil(v any) bool
- func IfStru(value any) bool
- func IfTypeStru(v reflect.Type) bool
- func IfValueStru(v reflect.Value) bool
- func IfWindows() bool
- func InitStruNilPtrFields(Stru any)
- func IsStru(t reflect.Type) (reflect.Type, bool)
- func IsStruTime(t reflect.Type) bool
- func LoadBeanProxy[T baseiface.IbaseProxy]() T
- func LoadIniCfg(fileName string) (*ini.File, error)
- func MakeUnique(arr []int64) []int64
- func Map2Str(mapkey map[string]interface{}) strings.Builder
- func MapKey2Str(mapkey map[string]interface{}) strings.Builder
- func ModbusCrcCheckSum(data []byte) []byte
- func NameOfType(v interface{}) string
- func NewIchubLog(filename string) (logger *log.Logger)
- func NewOfPtrSome(some any) any
- func NewOfPtrType[T baseiface.IpoolObj]() T
- func NewOfPtrTypeAny[T any]() T
- func NewOfPtrTypeProxy[T baseiface.IbaseProxy]() T
- func NewOfType[T baseiface.IpoolObj]() T
- func NewProxyTypeOf(t reflect.Type) (baseiface.IbaseProxy, bool)
- func NewSliceOfAny(some any, len int) any
- func NewStru[S any]() *S
- func NewStruProxy[S baseiface.IbaseProxy]() S
- func NotStruTime(t reflect.Type) (reflect.Type, bool)
- func PtrInt32ToString(v *int32) string
- func PtrInt64ToString(v *int64) string
- func PtrIntToString(v *int) string
- func Round(f float64, n int) float64
- func SetFieldValue(refValue reflect.Value, value any)
- func SetFieldValues(refValue reflect.Value, value any)
- func SnowflakeNextVal() int64
- func SnowflakeNextValStr() string
- func ToInt32(value interface{}) (d int32)
- func ToInt64(value interface{}) (d int64)
- func ToStr(value interface{}, args ...int) (s string)
- func ToStruMap(src any, out any)
- func UniqueId() string
- func Uuid() string
- func UuidSimple() string
- type StrTo
- func (f StrTo) Bool() (bool, error)
- func (f *StrTo) Clear()
- func (f StrTo) Exist() bool
- func (f StrTo) Float32() (float32, error)
- func (f StrTo) Float64() (float64, error)
- func (f StrTo) Int() (int, error)
- func (f StrTo) Int8() (int8, error)
- func (f StrTo) Int16() (int16, error)
- func (f StrTo) Int32() (int32, error)
- func (f StrTo) Int64() (int64, error)
- func (f *StrTo) Set(v string)
- func (f StrTo) String() string
- func (f StrTo) Uint() (uint, error)
- func (f StrTo) Uint8() (uint8, error)
- func (f StrTo) Uint16() (uint16, error)
- func (f StrTo) Uint32() (uint32, error)
- func (f StrTo) Uint64() (uint64, error)
- type StruValue
Constants ¶
This section is empty.
Variables ¶
View Source
var MbTable = []uint16{}/* 256 elements not displayed */
Functions ¶
func ContainsStru ¶
func ContainsStruPtr ¶
func ContainsGometa(some interface{}) bool {
return ContainsStru[basedto.Gometa](some)
}
func FieldsFunc ¶
func FindNameOfIface ¶
func FindPkgNameOfIface ¶
func FindStruNilPtrFields ¶
func FindStruNilPtrFields(Stru any) []reflect.StructField
func FindStructFields ¶
func FindStructFields(v any) []reflect.StructField
func FmtPrintLn ¶
func FmtPrintLn(a ...interface{})
func FormatDatetime ¶
func GetAllFields ¶
func GetBool2Ptr ¶
func GetBoolPtr ¶
func GetInt32Ptr ¶
func GetInt64Ptr ¶
func GetPtr2Int32 ¶
func GetPtr2Int64 ¶
func GetPtr2Str ¶
func GetStringPtr ¶
func IfBaseModel ¶
func IfBaseModel(some any) (baseiface.IbaseModel, bool)
func IfInterface ¶
func IfNilPtrChild ¶
func IfProxyInitProxy ¶
func IfTypeStru ¶
func IfValueStru ¶
func InitStruNilPtrFields ¶
func InitStruNilPtrFields(Stru any)
func IsStruTime ¶
func LoadBeanProxy ¶
func LoadBeanProxy[T baseiface.IbaseProxy]() T
func MakeUnique ¶
func MapKey2Str ¶
func ModbusCrcCheckSum ¶
func NameOfType ¶
func NameOfType(v interface{}) string
func NewIchubLog ¶
func NewOfPtrSome ¶
func NewOfPtrTypeAny ¶
func NewOfPtrTypeAny[T any]() T
func NewOfPtrTypeProxy ¶
func NewOfPtrTypeProxy[T baseiface.IbaseProxy]() T
func NewProxyTypeOf ¶
func NewProxyTypeOf(t reflect.Type) (baseiface.IbaseProxy, bool)
func NewSliceOfAny ¶
func NewStruProxy ¶
func NewStruProxy[S baseiface.IbaseProxy]() S
func PtrInt32ToString ¶
func PtrInt64ToString ¶
func PtrIntToString ¶
func SetFieldValue ¶
func SetFieldValues ¶
func SnowflakeNextVal ¶
func SnowflakeNextVal() int64
func SnowflakeNextValStr ¶
func SnowflakeNextValStr() string
func UuidSimple ¶
func UuidSimple() string
Types ¶
Click to show internal directories.
Click to hide internal directories.