kit

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Byte128 = sync.Pool{
	New: func() interface{} {
		buf := make([]byte, 128)
		return &buf
	},
}
View Source
var Byte17 = sync.Pool{
	New: func() interface{} {
		buf := make([]byte, 17)
		return &buf
	},
}
View Source
var Byte23 = sync.Pool{
	New: func() interface{} {
		buf := make([]byte, 23)
		return &buf
	},
}
View Source
var Byte3 = sync.Pool{
	New: func() interface{} {
		buf := make([]byte, 3)
		return &buf
	},
}
View Source
var Byte7 = sync.Pool{
	New: func() interface{} {
		buf := make([]byte, 7)
		return &buf
	},
}

Functions

func NewOrderedMap

func NewOrderedMap() *omap

Types

type Filter

type Filter func(v interface{}) bool

type OrderedMap

type OrderedMap interface {
	Count() int
	Put(k, v interface{})
	Get(k interface{}) interface{}
	Index(i int) interface{}
	Remove(k interface{})
	RemoveAll(fn Filter)
	ForEach(fn Filter)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL