Documentation ¶
Index ¶
- func Base64(params string) string
- func Base64Bytes(bytes []byte) string
- func Base64MD5(params string) string
- func C2Camel(str string) string
- func Camel2C(str string) string
- func Capitalize(str string) string
- func ConditionString(condition bool, f1 interface{}, f2 interface{}) string
- func Contains(container interface{}, obj interface{}) (bool, error)
- func ContainsAll(container interface{}, objs []interface{}) (bool, error)
- func ContainsAny(container interface{}, objs []interface{}) (bool, error)
- func CopyFields(dest interface{}, src interface{}, fields ...string) (err error)
- func CopyFieldsExcept(dest interface{}, src interface{}, fields ...string) (err error)
- func CreateSqlResFormatFactory() *sqlResFormatTree
- func DbFieldName(s string) string
- func DbFields(kv map[string]interface{}) map[string]interface{}
- func DefaultString(s string, defaultValue string) string
- func DeleteElement(src []string, elem string) []string
- func DeleteElements(src []string, elems []string) []string
- func FillFields(dest interface{}, src interface{}, fields ...string) (err error)
- func Filter(container interface{}, objs []interface{}) (interface{}, error)
- func First[T any](items []T, filter func(T) bool) T
- func FormatParamterContent(content string, params map[string]string) string
- func GenerateRandomString(length int) string
- func Int32Addr(i int32) *int32
- func Int64Addr(i int64) *int64
- func IntAddr(i int) *int
- func MD5(params string) string
- func MapStruct(src map[string]interface{}, dest interface{})
- func MergeFields(dest interface{}, src interface{}, fields ...string) (err error)
- func NotNullString(s *string) string
- func Nullable(s *string) *string
- func RemoveRepByMap(slc []string) []string
- func SHA1(data string) string
- func StringAddr(s string) *string
- func StringValue(s *string) string
- func SubString(str string, begin, length int) string
- func TimeAddr(t time.Time) *time.Time
- func TimeValue(t *time.Time) time.Time
- func UUID() string
- func Unzip(zipFile string, destDir string) ([]string, error)
- func VariableName(str string) string
- func ZipFiles(filename string, files []string, oldForm, newForm string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionString ¶
func ContainsAll ¶
func ContainsAny ¶
func CopyFields ¶
按名字和类型复制(&a,b)b->a
func CopyFieldsExcept ¶
按名字和类型复制(&a,b)b->a
func CreateSqlResFormatFactory ¶
func CreateSqlResFormatFactory() *sqlResFormatTree
func DbFieldName ¶ added in v0.0.3
func DefaultString ¶
func DeleteElement ¶
func DeleteElements ¶
func FillFields ¶ added in v0.0.3
按名字和类型复制(&a,b)b->a: a.field为空的取a.field
func FormatParamterContent ¶ added in v0.0.8
func GenerateRandomString ¶
func MergeFields ¶ added in v0.0.3
按名字和类型合并(&a,b)b->a: field值取不为空的
func NotNullString ¶
func RemoveRepByMap ¶
func StringAddr ¶
func StringValue ¶
func VariableName ¶ added in v0.0.3
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.