Documentation ¶
Index ¶
- func ComputeFileMd5(filePath string) (string, error)
- func GetInvalidUtf8String(s string, num int) (string, int)
- func GetUUID() (string, error)
- func GetUniqueMd5() (string, error)
- func GetUtf8Chars(s string, num int) string
- func GetUtf8Chars_old(s string, num int) string
- func HashV(addrs []string, key string) string
- func IsHaveEmoji(s string) bool
- func IsJSON(s []byte) bool
- func JsonBigInt64Decode(s []byte, v interface{}) (err error)
- func RandDigit(n int) string
- func RandString(n int) string
- func ReplaceEmoji(s string, ns string) string
- func Round(val float64, deci int) float64
- func WriteFile(path string, data []byte, perm os.FileMode) error
- type VersionCmp
- func (m *VersionCmp) Eq(ver string) bool
- func (m *VersionCmp) GetFormatVersion() string
- func (m *VersionCmp) Gt(ver string) bool
- func (m *VersionCmp) Gte(ver string) bool
- func (m *VersionCmp) Lt(ver string) bool
- func (m *VersionCmp) Lte(ver string) bool
- func (m *VersionCmp) Max() string
- func (m *VersionCmp) Min() string
- func (m *VersionCmp) Ne(ver string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFileMd5 ¶
func GetInvalidUtf8String ¶
截取获取合法 num 个unicode字符 的utf8字符串 num 为0,全部截取 返回截取的unicode字符个数,以及字符串
func GetUniqueMd5 ¶
func GetUtf8Chars ¶
func GetUtf8Chars_old ¶
func IsHaveEmoji ¶
func JsonBigInt64Decode ¶
func RandString ¶
func ReplaceEmoji ¶
Types ¶
type VersionCmp ¶
type VersionCmp struct {
// contains filtered or unexported fields
}
func NewVersionCmp ¶
func NewVersionCmp(ver string) *VersionCmp
func (*VersionCmp) Eq ¶
func (m *VersionCmp) Eq(ver string) bool
func (*VersionCmp) GetFormatVersion ¶
func (m *VersionCmp) GetFormatVersion() string
func (*VersionCmp) Gt ¶
func (m *VersionCmp) Gt(ver string) bool
func (*VersionCmp) Gte ¶
func (m *VersionCmp) Gte(ver string) bool
func (*VersionCmp) Lt ¶
func (m *VersionCmp) Lt(ver string) bool
func (*VersionCmp) Lte ¶
func (m *VersionCmp) Lte(ver string) bool
func (*VersionCmp) Max ¶
func (m *VersionCmp) Max() string
func (*VersionCmp) Min ¶
func (m *VersionCmp) Min() string
func (*VersionCmp) Ne ¶
func (m *VersionCmp) Ne(ver string) bool
Click to show internal directories.
Click to hide internal directories.