Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
"sync"
4
5
type
Stack
struct
{
6
stack []
interface
{}
7
len int
8
lock sync.Mutex
9
}
10
11
func
New() *Stack {
12
s := &Stack{}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected