Documentation
¶
Index ¶
- Constants
- func FirstLower(s string) string
- func FirstUpper(s string) string
- func FloatDecimal(value float64, format string) float64
- func FloatDecimal2(value float64) float64
- func GetLocalIp() string
- func GetWriteSyncer() (zapcore.WriteSyncer, error)
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func InSliceIndex(items []string, item string) int
- func JsonToMap(jsonStr string) map[string]interface{}
- func PathExists(path string) (bool, error)
- func RandomNumbers(length int) string
- func ToJsonString(v interface{}) string
- func ToJsonStringGB2312(v interface{}) string
- type Fn
- type ITicker
Constants ¶
View Source
const BaseNumber = "0123456789"
Variables ¶
This section is empty.
Functions ¶
func GetWriteSyncer ¶
func GetWriteSyncer() (zapcore.WriteSyncer, error)
func InSliceIndex ¶
InSliceIndex 字符串在 slice 中的下标,没有返回 -1
func PathExists ¶
func ToJsonStringGB2312 ¶
func ToJsonStringGB2312(v interface{}) string
Types ¶
Click to show internal directories.
Click to hide internal directories.