util

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(params string) string

先base64,然后MD5

func Base64Bytes

func Base64Bytes(bytes []byte) string

先base64,然后MD5

func Base64MD5

func Base64MD5(params string) string

先base64,然后MD5

func ConditionString

func ConditionString(condition bool, f1 interface{}, f2 interface{}) string

func CopyFields

func CopyFields(dest interface{}, src interface{}, fields ...string) (err error)

按名字和类型复制(&a,b)b->a

func CopyFieldsExcept

func CopyFieldsExcept(dest interface{}, src interface{}, fields ...string) (err error)

按名字和类型复制(&a,b)b->a

func CreateSqlResFormatFactory

func CreateSqlResFormatFactory() *sqlResFormatTree

func DefaultString

func DefaultString(s string, defaultValue string) string

func DeleteElement

func DeleteElement(src []string, elem string) []string

func DeleteElements

func DeleteElements(src []string, elems []string) []string

func MD5

func MD5(params string) string

func MapStruct

func MapStruct(src map[string]interface{}, dest interface{})

func NotNullString

func NotNullString(s *string) string

func RemoveRepByMap

func RemoveRepByMap(slc []string) []string

func SHA1

func SHA1(data string) string

func StringAddr

func StringAddr(s string) *string

func StringValue

func StringValue(s *string) string

func SubString

func SubString(str string, begin, length int) string

func TimeAddr

func TimeAddr(t time.Time) *time.Time

func TimeValue

func TimeValue(t *time.Time) time.Time

func UUID

func UUID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL