Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crossoverJie/gscript
/ Get
Method
Get
stack/stack.go:19–21 ·
view source on GitHub ↗
(i int)
Source
from the content-addressed store, hash-verified
17
return
len(*s)
18
}
19
func
(s *Stack) Get(i int)
interface
{} {
20
return
(*s)[i]
21
}
22
23
// Push a new value onto the Stack
24
func
(s *Stack) Push(val
interface
{}) {
Callers
4
TestStack_Get
Function · 0.95
pushStack
Method · 0.80
TestVisitor_JSONGet
Function · 0.80
JSONGet
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestStack_Get
Function · 0.76
TestVisitor_JSONGet
Function · 0.64