MCPcopy Create free account
hub / github.com/GoTurkiye/training / Stack

Struct Stack

301-algorithms/linear-lists/stack/stack.go:5–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3type MyItem int
4
5type Stack struct {
6 capacity uint64
7 depth uint64
8 list []MyItem
9}
10
11func NewStack(capacity uint64) *Stack {
12 return &Stack{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected