Documentation
¶
Index ¶
- Constants
- func CheckIPAddrSlc(str string) bool
- func CheckItfcNil(itfc interface{}) bool
- func CheckNumber(str string) bool
- func EnsureDir(dir string, mode os.FileMode) error
- func FileExists(filename string) bool
- func OnlyNumLetterUnderline(str string) bool
- func PathExists(path string) (bool, error)
- func ReadFileDataFromCmd(str string) ([]byte, error)
- func Start()
- type CountTime
- type StStatistic
Constants ¶
View Source
const FLUSH_INTERVAL = 5 * time.Second // statistic cycle
View Source
const (
FUNC_MAX_NUM = iota
)
Variables ¶
This section is empty.
Functions ¶
func CheckIPAddrSlc ¶
func CheckItfcNil ¶
func CheckItfcNil(itfc interface{}) bool
func CheckNumber ¶
func FileExists ¶
func OnlyNumLetterUnderline ¶
func PathExists ¶
func ReadFileDataFromCmd ¶
Types ¶
type StStatistic ¶
type StStatistic struct {
// contains filtered or unexported fields
}
func CountSlc ¶
func CountSlc(index int) *StStatistic
func (*StStatistic) Add ¶
func (ss *StStatistic) Add(num int64)
func (*StStatistic) End ¶
func (ss *StStatistic) End(endFunc func())
func (*StStatistic) Reset ¶
func (ss *StStatistic) Reset()
func (*StStatistic) String ¶
func (ss *StStatistic) String() string
Click to show internal directories.
Click to hide internal directories.