()
| 26 | } |
| 27 | |
| 28 | func (s *jsonStack) pop() stackItem { |
| 29 | if len(*s) == 0 { |
| 30 | return stackInvalid |
| 31 | } |
| 32 | item := (*s)[len(*s)-1] |
| 33 | *s = (*s)[:len(*s)-1] |
| 34 | return item |
| 35 | } |
| 36 | |
| 37 | func (s jsonStack) peek() stackItem { |
| 38 | if len(s) == 0 { |
no outgoing calls
no test coverage detected