Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dustinxie/lockfree
/ Push
Method
Push
stack.go:28–28 ·
view source on GitHub ↗
add an item to the stack
(interface{})
Source
from the content-addressed store, hash-verified
26
27
// add an item to the stack
28
Push(
interface
{})
29
30
// remove an item from the stack
31
Pop()
interface
{}
Callers
3
TestNewStack
Function · 0.95
BenchmarkLockfreeStack
Function · 0.95
TestStack
Function · 0.95
Implementers
1
stack
list/stack.go
Calls
no outgoing calls
Tested by
3
TestNewStack
Function · 0.76
BenchmarkLockfreeStack
Function · 0.76
TestStack
Function · 0.76