Documentation ¶ Index ¶ func AddBuffer(amt *big.Int, factor int64) *big.Int type Stack func NewStack[T any]() *Stack[T] func (stack *Stack[T]) IsEmpty() bool func (stack *Stack[T]) Pop() (T, bool) func (stack *Stack[T]) Push(key T) func (stack *Stack[T]) Top() (T, bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddBuffer ¶ added in v0.6.5 func AddBuffer(amt *big.Int, factor int64) *big.Int Types ¶ type Stack ¶ type Stack[T any] struct { // contains filtered or unexported fields } func NewStack ¶ func NewStack[T any]() *Stack[T] func (*Stack[T]) IsEmpty ¶ func (stack *Stack[T]) IsEmpty() bool func (*Stack[T]) Pop ¶ func (stack *Stack[T]) Pop() (T, bool) func (*Stack[T]) Push ¶ func (stack *Stack[T]) Push(key T) func (*Stack[T]) Top ¶ func (stack *Stack[T]) Top() (T, bool) Source Files ¶ View all Source files buffer.go stack.go Click to show internal directories. Click to hide internal directories.