Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
type
MyItem int
4
5
type
Stack
struct
{
6
capacity uint64
7
depth uint64
8
list []MyItem
9
}
10
11
func
NewStack(capacity uint64) *Stack {
12
return
&Stack{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected