MCPcopy Create free account
hub / github.com/0xAX/go-algorithms / Stack

Struct Stack

stack/stack.go:9–12  ·  view source on GitHub ↗

Stack is a base structure for LIFO

Source from the content-addressed store, hash-verified

7
8// Stack is a base structure for LIFO
9type Stack struct {
10 sp *StackItem
11 depth uint64
12}
13
14// Initialzes new Stack
15func New() *Stack {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected