GetString gets the string value.
()
| 213 | |
| 214 | // GetString gets the string value. |
| 215 | func (bj BinaryJSON) GetString() []byte { |
| 216 | strLen, lenLen := binary.Uvarint(bj.Value) |
| 217 | return bj.Value[lenLen : lenLen+int(strLen)] |
| 218 | } |
| 219 | |
| 220 | // Opaque represents a raw binary type |
| 221 | type Opaque struct { |