UpdateString is a helper function for Update that accepts a value as a string rather than a byte slice.
(id uint64, newValue string)
| 220 | // UpdateString is a helper function for Update that accepts a value |
| 221 | // as a string rather than a byte slice. |
| 222 | func (s *Stack) UpdateString(id uint64, newValue string) (*Item, error) { |
| 223 | return s.Update(id, []byte(newValue)) |
| 224 | } |
| 225 | |
| 226 | // UpdateObject is a helper function for Update that accepts any |
| 227 | // value type, which is then encoded into a byte slice using |