Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stacker ¶
type Stacker[Type any] struct { Data []Type // contains filtered or unexported fields }
----------------------------------------------------------------------------
func NewStacker ¶
----------------------------------------------------------------------------
func (*Stacker[Type]) Length ¶
---------------------------------------------------------------------------- Returns the number of elements in the stack
func (*Stacker[Type]) Peek ¶
---------------------------------------------------------------------------- Returns the first entry in the stack, does not remove it, can error on empty
Click to show internal directories.
Click to hide internal directories.