Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crossoverJie/gscript
/ Size
Method
Size
stack/stack.go:16–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
}
15
16
func
(s *Stack) Size() int {
17
return
len(*s)
18
}
19
func
(s *Stack) Get(i int)
interface
{} {
20
return
(*s)[i]
21
}
Callers
2
TestStack_Peek
Function · 0.95
TestStack_Get
Function · 0.95
Calls
no outgoing calls
Tested by
2
TestStack_Peek
Function · 0.76
TestStack_Get
Function · 0.76