code: func (n *Node) doRaftStats(conn redcon.Conn, cmd redcon.Command) (interface{}, error) {
  	if len(cmd.Args) != 1 {
  		return nil, ErrWrongNumberOfArguments
  	}
  	n.mu.RLock()
  	defer n.mu.RUnlock()
  	stats := n.raft.Stats()
  	keys := make([]string, 0, len(stats))
  	for key := range stats {
  		keys = append(keys, key)
  	}
  	sort.Strings(keys)
  	conn.WriteArray(len(keys) * 2)
  	for _, key := range keys {
  		conn.WriteBulkString(key)
  		conn.WriteBulkString(stats[key])
  	}
  	return nil, nil
  }
docs: // doRaftStatus handles a "RAFTSTATUS" client command.