Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(option *Options)
Option is a function type used to set Options
func WithContainer ¶
WithContainer is used to set a stack's underlying container
func WithGoroutineSafe ¶
func WithGoroutineSafe() Option
WithGoroutineSafe is used to set a stack goroutine-safe
func WithListContainer ¶
func WithListContainer() Option
WithListContainer is used to set List for a stack's underlying container
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options holds the Stack's options
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
Stack is a last-in-first-out data structure
func (*Stack) Pop ¶
func (s *Stack) Pop() interface{}
Pop removes the the top value in the stack and returns it
Click to show internal directories.
Click to hide internal directories.