Documentation ¶
Index ¶
Constants ¶
View Source
const ( MINFILL float32 = 0.1 MAXFILL float32 = 0.9 FILLRATIO float32 = 0.8 MINCAP int = 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SimpleList ¶
type SimpleList []interface{}
func (SimpleList) Empty ¶
func (s SimpleList) Empty() bool
func (SimpleList) Peek ¶
func (s SimpleList) Peek() interface{}
func (SimpleList) PeekFront ¶
func (s SimpleList) PeekFront() interface{}
func (*SimpleList) Pop ¶
func (s *SimpleList) Pop() interface{}
func (*SimpleList) PopFront ¶
func (s *SimpleList) PopFront() interface{}
func (*SimpleList) Put ¶
func (s *SimpleList) Put(i interface{})
func (SimpleList) Size ¶
func (s SimpleList) Size() int
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func NewStack ¶
func NewStack(slice []interface{}, opts ...StackOptionFunc) Stack
type StackOptionFunc ¶
func SetFillRatio ¶
func SetFillRatio(p float32) StackOptionFunc
func SetMaxFillPrct ¶
func SetMaxFillPrct(p float32) StackOptionFunc
func SetMinCapacity ¶
func SetMinCapacity(cap int) StackOptionFunc
func SetMinFillPrct ¶
func SetMinFillPrct(p float32) StackOptionFunc
Click to show internal directories.
Click to hide internal directories.