PushString is a helper function for Push that accepts a value as a string rather than a byte slice.
(value string)
| 85 | // PushString is a helper function for Push that accepts a |
| 86 | // value as a string rather than a byte slice. |
| 87 | func (s *Stack) PushString(value string) (*Item, error) { |
| 88 | return s.Push([]byte(value)) |
| 89 | } |
| 90 | |
| 91 | // PushObject is a helper function for Push that accepts any |
| 92 | // value type, which is then encoded into a byte slice using |