Documentation ¶
Index ¶
- func IsDigit(r byte) bool
- func Lcm(vals []uint32) uint32
- func Max(a, b uint32) uint32
- func MaxInt(a, b int) int
- func Min(a, b uint32) uint32
- func NaturalLess(s, t string) bool
- func ReadEntry(TomlFilename string, EntryName string) interface{}
- func TS(ts interface{}) string
- type BufferPool
- type Limiter
- type NaturalSortStringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NaturalLess ¶
NaturalLess compares strings lexicographically *except* substrings of numbers are sorted numerically
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
func NewBufferPool ¶
func NewBufferPool() *BufferPool
func (*BufferPool) Get ¶
func (b *BufferPool) Get() []byte
func (*BufferPool) Put ¶
func (b *BufferPool) Put(buf []byte)
type Limiter ¶
type Limiter chan struct{}
Limiter provides a mechanism for limiting concurrency. Users need to call Acquire() before starting work and Release() when the work is done. Acquire() will block if the Limiters limit has already been reached and unblock when another thread calls Release(), or the passed context is canceled.
type NaturalSortStringSlice ¶
type NaturalSortStringSlice []string
NaturalSortStringSlice sorts strings lexicographically *except* substrings of numbers are sorted numerically
func (NaturalSortStringSlice) Len ¶
func (ss NaturalSortStringSlice) Len() int
func (NaturalSortStringSlice) Less ¶
func (ss NaturalSortStringSlice) Less(i, j int) bool
func (NaturalSortStringSlice) Swap ¶
func (ss NaturalSortStringSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.