Documentation ¶
Index ¶
- Constants
- func ConvertObjectToMapData(v interface{}, tag string) map[string]interface{}
- func CopyMapperDataToObject(src map[string]interface{}, dst interface{})
- func CopyObjectSimply(src interface{}, dst interface{}, skipEmpty bool)
- func CurTimestampMiliSec() int64
- func DeeplyCopyObject(src interface{}, dst interface{}) error
- func EnsureDirectory(path string) error
- func GenLoweruuid() string
- func GenUUID() string
- func GetDigistIndex(digists string, c byte) int
- func GetLastPartString(text string) string
- func GetRemoteAddress(r *http.Request) string
- func GetSOAPAction(r *http.Request) string
- func HumanToTimestamp(format string, v string) int64
- func IncreaseValueCustomizedDigist(val string, digists string) string
- func IsEmpty(val interface{}) bool
- func IsInList(key int, list []int) bool
- func IsStringMapEquals(src, dst map[string]string) bool
- func JSONObjUnmarshal(in *map[string]interface{}, out interface{}) error
- func Md5Encode(val string) string
- func ObjectIDToString(val interface{}) string
- func ParseRemoteIP(val string) string
- func RandomString(l int) string
- func RemoveItemFromList(v string, l []string) []string
- func TimeToHuman(format string, t time.Time) string
- func TimestampToHuman(format string, ts int64) string
- func TimestampToHumanYYYYMMDD(ts int64) string
- func ToBoolean(val interface{}) bool
- func ToDouble(val interface{}) float64
- func ToFloat(val interface{}) float32
- func ToInt(val interface{}) int
- func ToInt64(val interface{}) int64
- func ToString(val interface{}) string
- func ToUint64(val interface{}) uint64
- func URLDecode(val string) string
- func URLEncode(val string) string
Constants ¶
View Source
const (
CharactorsBase = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
)
Constants
Variables ¶
This section is empty.
Functions ¶
func ConvertObjectToMapData ¶
ConvertObjectToMapData converter
func CopyMapperDataToObject ¶
func CopyMapperDataToObject(src map[string]interface{}, dst interface{})
CopyMapperDataToObject copy data
func CopyObjectSimply ¶
func CopyObjectSimply(src interface{}, dst interface{}, skipEmpty bool)
CopyObjectSimply copy object
func DeeplyCopyObject ¶
func DeeplyCopyObject(src interface{}, dst interface{}) error
DeeplyCopyObject deeply copy src object to dst object
func EnsureDirectory ¶
EnsureDirectory check the directory exists and create it if not exists
func GetDigistIndex ¶
GetDigistIndex get digist index
func GetLastPartString ¶
GetLastPartString get last slice of the text
func GetRemoteAddress ¶
GetRemoteAddress get http request remote ip
func HumanToTimestamp ¶
HumanToTimestamp converter
func IncreaseValueCustomizedDigist ¶
IncreaseValueCustomizedDigist increase
func IsStringMapEquals ¶
IsStringMapEquals boolean
func JSONObjUnmarshal ¶
JSONObjUnmarshal unmarshal object
func ObjectIDToString ¶
func ObjectIDToString(val interface{}) string
ObjectIDToString convert objectid to string
func RemoveItemFromList ¶
RemoveItemFromList remove element from list
func TimestampToHuman ¶
TimestampToHuman formatter
func TimestampToHumanYYYYMMDD ¶
TimestampToHumanYYYYMMDD formatter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.