MCPcopy Create free account
hub / github.com/arnauddri/algorithms / Stack

Struct Stack

data-structures/stack/stack.go:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import "sync"
4
5type Stack struct {
6 stack []interface{}
7 len int
8 lock sync.Mutex
9}
10
11func New() *Stack {
12 s := &Stack{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected