Documentation ¶
Overview ¶
Copyright 2021 Murray Inc. All Rights Reserved.
2021/10/08 11:17, by m18527, create ----------------------------------- Go工具类,提供常用的方法
Index ¶
- func BuildLegalKey(args ...interface{}) string
- func Camel2Case(name string) string
- func Case2Camel(name string) string
- func DoDoneExec(busyMap *sync.Map, key KeyEnum, f func(args ...interface{}), ...)
- func Float64ToInt(f float64, isUpper bool) int
- func JsonToList(jsonStr string) []interface{}
- func JsonToMap(jsonStr string) map[string]interface{}
- func ObjToStr(obj interface{}) (result string)
- func ObjToStr_(obj interface{}) (result string, err error)
- func PrintStack()
- func PrintStackWithRecover()
- func SafeStr(str string) string
- func Str2List(listStr string) (result []interface{})
- func Str2List_(listStr string) (result []interface{}, err error)
- func Str2Map(jsonStr string) (result map[string]interface{})
- func Str2Map_(jsonStr string) (result map[string]interface{}, err error)
- func Timestamp2Time(second int64) time.Time
- func Timestamp2TimeStr(second int64) string
- func ToFloat64(obj interface{}) float64
- func ToFloat64_(obj interface{}) (float64, error)
- func ToInt(str string) int
- func ToInt64(str string) int64
- func ToInt64_(str string) (int64, error)
- func ToInt_(str string) (int, error)
- func ToJson(bean interface{}) string
- func ToList(obj interface{}) []interface{}
- func ToMap(obj interface{}) map[string]interface{}
- func ToRound(x, y float64, n int) float64
- func ToRound_(x, y float64, n int) (float64, error)
- func ToString(obj interface{}) string
- func ToTimestamp(dateStr string) int64
- func ToTimestamp_(dateStr string) (int64, error)
- type KeyEnum
- type Limit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLegalKey ¶
func BuildLegalKey(args ...interface{}) string
func DoDoneExec ¶
func Float64ToInt ¶
func JsonToList ¶ added in v1.0.7
func JsonToList(jsonStr string) []interface{}
func PrintStack ¶
func PrintStack()
func PrintStackWithRecover ¶
func PrintStackWithRecover()
func ToTimestamp ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.