Versions in this module Expand all Collapse all v0 v0.0.5 Sep 28, 2025 Changes in this version + func CeilTo(x float64, n int) float64 + func FloorTo(x float64, n int) float64 + func Round(x float64, n int) float64 + func RoundEven(x float64, n int) float64 + func ToFixed(x float64, n int) string + func Trunc(x float64, n int) float64 v0.0.1 Aug 6, 2025 Changes in this version + const DELETE + const GET + const HEAD + const LicenseLoginFileName + const OPTIONS + const PATCH + const POST + const PUT + const UptimeFile + var Bool = InterfaceToBool + var Float64 = InterfaceToFloat64 + var Int = InterfaceToInt + var Int32 = InterfaceToInt32 + var Int64 = InterfaceToInt64 + var Str = InterfaceToStr + var TFormat = "2006-01-02" + var TimeFormat = "2006-01-02 15:04:05" + var TimeFormatRexMap = map[string]string + func BJsonToListMap(bdata []byte) (jmap []map[string]interface{}) + func BJsonToMap(bdata []byte) (jmap map[string]interface{}) + func Bind(data interface{}, ret interface{}) error + func CheckIp(ipAddr string) bool + func EndWith(value, str string) bool + func FileOpenRead(filename string) (contents []uint8, err error) + func Float64ToStr(obj float64) (sli string) + func Formattimezone() string + func FromTimeStamp(in interface{}) string + func GetYesterdayTime() []string + func If(b bool, to, fo interface{}) interface + func InToMap(b []interface{}) []map[string]interface + func IntToStr(in int) string + func InterToSliceString(obj interface{}) []string + func InterfaceToBool(x interface{}) bool + func InterfaceToFloat64(x interface{}) float64 + func InterfaceToInt(x interface{}) int + func InterfaceToInt32(x interface{}) int32 + func InterfaceToInt64(x interface{}) int64 + func InterfaceToStr(x interface{}) string + func IsLeapYear(year int) bool + func IterToMap(obj interface{}) map[string]interface + func IterToMaps(obj interface{}) []map[string]interface + func JoinRedisKey(key ...string) string + func JsonNumberToFloat64(obj json.Number) float64 + func JsonNumberToInt64(obj json.Number) int64 + func LastDuration() (sTime, eTime string) + func ListMaxVal(list []int) (maxval int) + func ListMaxValInt(slice interface{}) (maxIndex, minIndex int, maxVal, minVal, avgVal float64) + func ListStructToListMap(obj []interface{}) []map[string]interface + func MapArrToObjArr(old []map[string]interface{}) []interface + func MapToBuffer(m interface{}) *bytes.Buffer + func MapToStr(param map[string]interface{}) string + func MapToString(m interface{}) string + func MatToBuffer(m map[string]interface{}) *bytes.Buffer + func MathCeil(x float64) int + func MathFloor(x float64) int + func PathExists(path string) (bool, error) + func Pretty(data interface{}) string + func RangeKeyListMap(obj interface{}, list []map[string]interface{}) bool + func RangeListMap(obj map[string]interface{}, list []map[string]interface{}) bool + func RangeMap(obj interface{}, list map[string]interface{}) bool + func Rangelist(b interface{}, list []interface{}) bool + func ReadFile(filename string) (string, error) + func Readlines(filename string) (readlineslist []string, err error) + func RemoveDuplicatesAndEmpty(a []string) (ret []string) + func RemoveRepeatedElement(arr []string) (newArr []string) + func RemoveRepeatedElementList(arr []interface{}) (newArr []interface{}) + func SJsonToListMap(sdata string) (jmap []map[string]interface{}) + func SJsonToMap(sdata string) (jmap map[string]interface{}) + func Set(in interface{}, out interface{}) + func SetListString(list1, list2 []string) []string + func SetListStringadd(list1, list2 []string) (listAdd []string) + func SliceInterToString(obj []interface{}) (sli []string) + func SliceToStr(v interface{}) string + func SortData(data interface{}, sortkey string, reverse bool) + func SortDataEx(data interface{}, sortkey []string, reverse bool) + func SortedMap(mapslice []map[string]interface{}, sortkey string, direction bool) []map[string]interface + func StartWith(value, str string) bool + func StrToInt(in string) int + func StrToMap(str string) map[string]interface + func StringToFloat64(obj string) float64 + func StringToInt(obj string) int + func StringToInt64(obj string) int64 + func StringToMap(str string) (jmap map[string]interface{}) + func StringToSlice(s string) []string + func StructToMap(obj interface{}) map[string]interface + func StructToMapMore(obj interface{}) map[string]interface + func StructToMapMore1(obj interface{}) map[string][]map[string]interface + func ToInt(x interface{}) int + func ToSlice(arr interface{}) []interface + func ToString(i interface{}) string + func ToTimeStamp(in string) int64 + func UnixToTime(t, typ int64) (sTime string) + func VerifyEmailFormat(email string) bool + func WriteFile(filename string, data []byte) error + type Cloud_env_Get struct + Ip string + Port string + type SaveDebug struct + ClientIp string + Content interface{} + ErrorMsg string + Optype string + Ret interface{} + Time int + UserID string + UserRole string + type SendData struct + Ret interface{} + Success bool + type SortBy struct + Data []map[string]interface{} + Sortkey string + func (a SortBy) Len() int + func (a SortBy) Less(i, j int) bool + func (a SortBy) Swap(i, j int) + type SortByEx struct + Data []map[string]interface{} + Sortkey []string + func (a SortByEx) Len() int + func (a SortByEx) Less(i, j int) bool + func (a SortByEx) LessSub(keyindex, i, j int) bool + func (a SortByEx) Swap(i, j int)