MCPcopy Create free account
hub / github.com/chain/txvm / String

Method String

protocol/txvm/stack.go:9–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7type stack []Item
8
9func (s stack) String() string {
10 res := "stack{"
11 for i, it := range s {
12 if i != 0 {
13 res += ", "
14 }
15 res += it.String()
16 }
17 res += "}"
18 return res
19}
20
21func (s *stack) peek(n int64) (Item, bool) {
22 index := int64(len(*s)) - 1 - n

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected