conn := tcpConn() resp := red.NewResponder(conn) responder := resp.WriteBulkLen(5) fmt.Fprintf(responder, "hello")
conn := tcpConn() resp := red.NewResponder(conn) resp.WriteBulkLen(-1)This example writes a null response to the connection. A null response is indicated by passing a length of -1 to the `WriteBulkLen` method.