Documentation ¶
Index ¶
- func Empty(val interface{}) bool
- func InIntArray(k int, arr []int) bool
- func InStrArray(str string, arr []string) bool
- func IsContainStr(str string, arr []string) bool
- func RandomNumber(length int) string
- func RoundToSevenDecimalPlaces(num float64) float64
- func RoundToTwoDecimalPlaces(num float64) float64
- func SafeFloatAdd(a, b float64) float64
- func ToBool(obj interface{}) (bool, error)
- func ToFloat(obj interface{}) (float64, error)
- func ToInt(obj interface{}) (int, error)
- func ToMap(obj interface{}) (map[string]interface{}, error)
- func ToSlice(obj interface{}) ([]interface{}, error)
- func ToString(obj interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InIntArray ¶
func InStrArray ¶
func RoundToSevenDecimalPlaces ¶
RoundToSevenDecimalPlaces 保留小数点后7位
func RoundToTwoDecimalPlaces ¶
RoundToTwoDecimalPlaces 保留小数点后两位
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.