Versions in this module Expand all Collapse all v0 v0.1.0 Mar 9, 2023 Changes in this version + const EARTH_RADIUS + func Base642Image(image string) (img image.Image, picType string, err error) + func BuildsSort(s string) string + func ConvertToString(src string, srcCode string, tagCode string) string + func DoWritLogFile(data interface{}, msg string, symbol string, lf *os.File) + func GetDateTimeFormat(t time.Time) string + func GetFileSize(file *os.File) (s int64) + func GetI18NValue(s, lang string) (result string, err error) + func GetImageSize(file *os.File) (width, height int) + func GetOrientation(f *os.File) (val int, e error) + func GetULID() ulid.ULID + func GetULID2Str() string + func GetULIDV4() UUID.UUID + func Get_two_points_distance(oldLL Longlati, newLL Longlati) int + func IsOrientationZero(f *os.File) (b bool, e error) + func Jpg2Base64(filename string) (base64Str string, err error) + func RemoveDuplicatesAndEmpty(a []string) (ret []string) + func SliceIndex(a Element, i interface{}) int + func Substr(str string, start, length int) string + func SunnyCompareTime(t, u time.Time, symbol string) (b bool) + func SunnyIsNotExist(path string) + func SunnyIsNotExists(path string) + func SunnyJSONToStr(jsondata interface{}) (result string) + func SunnyMd5(str string) (keyMd5 string) + func SunnyParseDuration(strSpan string, t time.Time) time.Time + func SunnyStr2Time(strTime string) time.Time + func SunnyStr2USATime(strTime string) (time.Time, error) + func SunnyStrJoin(str ...string) string + func SunnyTimeNow(style string) (result string) + func SunnyTimeToStr(t time.Time, style string) (result string) + func SunnyTypeof(v interface{}) string + type Element interface + type Longlati struct + Lati float64 + Long float64 + func (l *Longlati) GetLati() float64 + func (l *Longlati) GetLong() float64 + func (l *Longlati) SetLati(value float64) + func (l *Longlati) SetLatiFromString(value string) + func (l *Longlati) SetLong(value float64) + func (l *Longlati) SetLongFromString(value string) + type SafeCounter struct + Mux sync.Mutex + T int + Val map[string]string + func (c *SafeCounter) Clear(key string) + func (c *SafeCounter) GetValue(key string) (string, int) + func (c *SafeCounter) Inc(key string, s1, str string, b bool) + func (c *SafeCounter) Value(key string) string + type SunnyMsgStruct struct + Data interface{} + Msg string + Status bool