Documentation ¶
Index ¶
- func CompareMap(defaultMap map[interface{}]interface{}, newMap map[interface{}]interface{}) map[interface{}]interface{}
- func CopyBytes(b []byte) (copiedBytes []byte)
- func Encode(b []byte) string
- func GetColorStr(color string, isHighLighted bool, str string) string
- func GetInToStr(value interface{}) string
- func GetRandomStr(num int) string
- func Hex2Bytes(str string) []byte
- func ReadFileLine(path string) []string
- func ReadYaml(path string) map[interface{}]interface{}
- func ScheduleTask()
- func SetTime(hour, min, second int) (d time.Duration)
- func WriteFileLine(path string, str string)
- type Jobs
- type Pool
- type Prque
- func (p *Prque) Empty() bool
- func (p *Prque) Peek() (interface{}, int64)
- func (p *Prque) Pop() (interface{}, int64)
- func (p *Prque) PopItem() interface{}
- func (p *Prque) Push(data interface{}, priority int64)
- func (p *Prque) Remove(i int) interface{}
- func (p *Prque) Reset()
- func (p *Prque) Size() int
- type SetIndexCallback
- type StorageSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareMap ¶
func CompareMap(defaultMap map[interface{}]interface{}, newMap map[interface{}]interface{}) map[interface{}]interface{}
func GetInToStr ¶
func GetInToStr(value interface{}) string
func GetRandomStr ¶
func ReadFileLine ¶
func ScheduleTask ¶
func ScheduleTask()
func WriteFileLine ¶
Types ¶
type Prque ¶ added in v0.0.5
type Prque struct {
// contains filtered or unexported fields
}
优先级队列数据结构。
func NewWrapAround ¶ added in v0.0.5
func NewWrapAround(setIndex SetIndexCallback) *Prque
newwrapparound使用环绕优先级处理创建新的优先级队列。
type SetIndexCallback ¶ added in v0.0.5
type SetIndexCallback func(data interface{}, index int)
* 当元素移动到新索引时,将调用SetIndexCallback。提供SetIndexCallback是可选的,只有当应用程序需要删除除顶部元素以外的其他元素时才需要它。
type StorageSize ¶ added in v0.0.5
type StorageSize float64
StorageSize is a wrapper around a float value that supports user friendly formatting.
func (StorageSize) String ¶ added in v0.0.5
func (s StorageSize) String() string
String implements the stringer interface.
func (StorageSize) TerminalString ¶ added in v0.0.5
func (s StorageSize) TerminalString() string
TerminalString implements log.TerminalStringer, formatting a string for console output during logging.
Click to show internal directories.
Click to hide internal directories.