Documentation ¶
Index ¶
- func GetStructFieldName(sf reflect.StructField, tagType ...string) (fieldName string)
- func HandleMethod(methods []string) error
- func InArray[T comparable](val T, list []T) bool
- func ParseBool(i interface{}) (rs bool, err error)
- func ParseFloat64(i interface{}) (rs float64, err error)
- func ParseInt64(i interface{}) (rs int64, err error)
- func SplitUpper(s string) (string, string)
- func ToBool(i interface{}) (rs bool)
- func ToFloat64(i interface{}) (rs float64)
- func ToInt64(i interface{}) (rs int64)
- func ToPtr[T any](v T) *T
- func ToString(i interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStructFieldName ¶
func GetStructFieldName(sf reflect.StructField, tagType ...string) (fieldName string)
func HandleMethod ¶
func ParseFloat64 ¶
ParseFloat64 Parse float64 type
func SplitUpper ¶
SplitUpper Cut based on the first non-zero uppercase letter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.