Documentation ¶
Overview ¶
Package util ... 本队列工具取自:https://github.com/yireyun/go-queue,有少许修改。
Index ¶
- func FileExist(path string) (bool, error)
- func NewLine() string
- func PowerOff(force, reboot bool)
- func RandInt(min int, max int) int
- func RandomHex(l int) string
- func SequenceEqual(a []byte, b []byte) bool
- func SubStr(s string, pos, length int) string
- func Substr(s string, pos int) string
- func UintptrToString(ptr uintptr) string
- type LogLevel
- type Logger
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SequenceEqual ¶
SequenceEqual will check 2 arrays sequence equal.
Types ¶
type Logger ¶
Logger is a common console and file logger.
func (*Logger) LogDebug ¶
func (lgr *Logger) LogDebug(tag, msg interface{})
LogDebug will record debug infomation.
func (*Logger) LogError ¶
func (lgr *Logger) LogError(tag, msg interface{})
LogError will record error.
func (*Logger) LogFatal ¶
func (lgr *Logger) LogFatal(tag, msg interface{})
LogFatal will record fatal.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue EsQueue是一个无锁队列。原作者yireyun(https://github.com/yireyun),有少许修改。
Source Files ¶
Click to show internal directories.
Click to hide internal directories.