Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2018 Changes in this version + const FLUSH_INTERVAL + const FUNC_MAX_NUM + func BinRead(reader io.Reader, data interface{}) error + func BinWrite(writer io.Writer, data interface{}) error + func CheckIPAddrSlc(str string) bool + func CheckItfcNil(itfc interface{}) bool + func CheckNumber(str string) bool + func CopyFile(dstName, srcName string) (written int64, err error) + func OnlyNumLetterUnderline(str string) bool + func PathExists(path string) (bool, error) + func ReadByte(r io.Reader) (byte, error) + func ReadBytes(reader io.Reader) ([]byte, error) + func ReadFileDataFromCmd(str string) ([]byte, error) + func ReadUint8(r io.Reader) (uint8, error) + func ReadVarint(r io.Reader) (int, error) + func Start() + func WriteBytes(writer io.Writer, bys []byte) error + func WriteVarint(w io.Writer, i int) error + type CountTime struct + type Int64Slice []int64 + func (p Int64Slice) Len() int + func (p Int64Slice) Less(i, j int) bool + func (p Int64Slice) Sort() + func (p Int64Slice) Swap(i, j int) + type StStatistic struct + func CountSlc(index int) *StStatistic + func (ss *StStatistic) Add(num int64) + func (ss *StStatistic) Begin() func() + func (ss *StStatistic) End(endFunc func()) + func (ss *StStatistic) Init(name string, threshold time.Duration) + func (ss *StStatistic) Reset() + func (ss *StStatistic) String() string