DecodeString reads the next JSON-encoded value from the decoder's input (io.Reader) and stores it in the string pointed to by v. See the documentation for Unmarshal for details about the conversion of JSON into a Go value.
(v *string)
| 8 | // |
| 9 | // See the documentation for Unmarshal for details about the conversion of JSON into a Go value. |
| 10 | func (dec *Decoder) DecodeString(v *string) error { |
| 11 | if dec.isPooled == 1 { |
| 12 | panic(InvalidUsagePooledDecoderError("Invalid usage of pooled decoder")) |
| 13 | } |
| 14 | return dec.decodeString(v) |
| 15 | } |
| 16 | func (dec *Decoder) decodeString(v *string) error { |
| 17 | for ; dec.cursor < dec.length || dec.read(); dec.cursor++ { |
| 18 | switch dec.data[dec.cursor] { |