Documentation ¶
Index ¶
- func Base64Decode(s string) []byte
- func Base64Encode(s []byte) string
- func ByteSizeFormat(s int64) string
- func BytesToJSON(byt []byte, jn interface{}) error
- func DirIsExistThenMkdir(path string) error
- func Finalize()
- func GenMD5(s string) string
- func GenNonce() int64
- func GenVerifyCode() string
- func InetAToI(ip string) int64
- func Int64ToString(n int64) string
- func IntToString(n int) string
- func IsExistFile(path string) (bool, error)
- func JSONToBytes(jn interface{}) []byte
- func Logger(f map[string]interface{}) *logrus.Entry
- func MapStringToSlice(om map[string]interface{}) (ret []string)
- func MsFormat(ts int64) string
- func MsFormatDay(ts int64) string
- func MsFormatFN(ts int64) string
- func MsFormatMonth(ts int64) string
- func NowMs() int64
- func RandomBytes(len int, r []byte) []byte
- func RandomBytesQ(len int, r []byte) []byte
- func SetLogout(path string)
- func StringToInt(s string) int
- func StringToInt64(s string) int64
- func StringToSlice(d string, s string) []string
- func TimestampFormat(ts int64) string
- type Duration
- type Fields
- type StatBandwidth
- func (s *StatBandwidth) Begin()
- func (s *StatBandwidth) Bps(ms int64) int64
- func (s *StatBandwidth) Bps1s() int64
- func (s *StatBandwidth) Bps3s() int64
- func (s *StatBandwidth) Bps5s() int64
- func (s *StatBandwidth) End()
- func (s *StatBandwidth) Inc(b int64)
- func (s *StatBandwidth) Info() string
- func (s *StatBandwidth) InfoAll() string
- func (s *StatBandwidth) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Encode ¶
func MapStringToSlice ¶
Types ¶
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
Duration -
func NewDuration ¶
func NewDuration() *Duration
Click to show internal directories.
Click to hide internal directories.