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

Method First

command.go:6315–6323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6313}
6314
6315func (cmd *FunctionListCmd) First() (*Library, error) {
6316 if cmd.err != nil {
6317 return nil, cmd.err
6318 }
6319 if len(cmd.val) > 0 {
6320 return &cmd.val[0], nil
6321 }
6322 return nil, Nil
6323}
6324
6325func (cmd *FunctionListCmd) readReply(rd *proto.Reader) (err error) {
6326 n, err := rd.ReadArrayLen()

Callers 1

commands_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected