Versions in this module Expand all Collapse all v0 v0.2.0 Jan 11, 2026 v0.1.0 Apr 17, 2025 Changes in this version + const Array + const Bulk + const Error + const Integer + const String + func AppendAny(b []byte, v interface{}) []byte + func AppendArray(b []byte, n int) []byte + func AppendBulk(b []byte, bulk []byte) []byte + func AppendBulkFloat(dst []byte, f float64) []byte + func AppendBulkInt(dst []byte, x int64) []byte + func AppendBulkString(b []byte, bulk string) []byte + func AppendBulkUint(dst []byte, x uint64) []byte + func AppendError(b []byte, s string) []byte + func AppendInt(b []byte, n int64) []byte + func AppendNull(b []byte) []byte + func AppendOK(b []byte) []byte + func AppendString(b []byte, s string) []byte + func AppendTile38(b []byte, data []byte) []byte + func AppendUint(b []byte, n uint64) []byte + type Command struct + Args [][]byte + Raw []byte + func ReadCommands(buf []byte) ([]Command, []byte, error) + type Kind int + const Redis + const Telnet + const Tile38 + func ReadNextCommand(packet []byte, argsbuf [][]byte) (complete bool, args [][]byte, kind Kind, leftover []byte, err error) + type Marshaler interface + MarshalRESP func() []byte + type RESP struct + Count int + Data []byte + Raw []byte + Type Type + func ReadNextRESP(b []byte) (n int, resp RESP) + func (r *RESP) ForEach(iter func(resp RESP) bool) + type SimpleInt int + type SimpleString string + type Type byte + type Writer struct + func (w *Writer) WriteArray(count int) + func (w *Writer) WriteBulk(bulk []byte)