(*Reader) Buffered() int Discard the data represented by line. DiscardNext read and discard the data represented by the next line.(*Reader) Peek(n int) ([]byte, error) PeekReplyType returns the data type of the next response without advancing the Reader,
and discard the attribute type. ReadArrayLen Read and return the length of the array.(*Reader) ReadBool() (bool, error) ReadFixedArrayLen read fixed array length. ReadFixedMapLen reads fixed map length.(*Reader) ReadFloat() (float64, error)(*Reader) ReadInt() (int64, error) ReadLine Return a valid reply, it will check the protocol or redis error,
and discard the attribute type. ReadMapLen reads the length of the map type.
If responding to the array type (RespArray/RespSet/RespPush),
it must be a multiple of 2 and return n/2.
Other types will return an error.(*Reader) ReadReply() (interface{}, error)(*Reader) ReadSlice() ([]interface{}, error)(*Reader) ReadString() (string, error)(*Reader) ReadUint() (uint64, error)(*Reader) Reset(rd io.Reader)
func NewReader(rd io.Reader) *Reader
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.