MCPcopy
hub / github.com/redis/go-redis / Text

Method Text

command.go:506–511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504}
505
506func (cmd *Cmd) Text() (string, error) {
507 if cmd.err != nil {
508 return "", cmd.err
509 }
510 return toString(cmd.val)
511}
512
513func toString(val interface{}) (string, error) {
514 switch val := val.(type) {

Callers 4

commands_test.goFile · 0.80
Example_customCommand2Function · 0.80
readReplyMethod · 0.80

Calls 1

toStringFunction · 0.85

Tested by 2

Example_customCommand2Function · 0.64