MCPcopy Create free account
hub / github.com/distributedio/titan / SimpleString

Method SimpleString

encoding/resp/resp.go:90–93  ·  view source on GitHub ↗

SimpleString builds a RESP simplestring

(s string)

Source from the content-addressed store, hash-verified

88
89//SimpleString builds a RESP simplestring
90func (r *Encoder) SimpleString(s string) error {
91 _, err := r.w.Write([]byte("+" + s + "\r\n"))
92 return err
93}
94
95//BulkString builds a RESP bulkstring
96func (r *Encoder) BulkString(s string) error {

Callers 1

TestSimpleString_EncodeFunction · 0.95

Implementers 1

Encoderencoding/resp/resp.go

Calls 1

WriteMethod · 0.80

Tested by 1

TestSimpleString_EncodeFunction · 0.76