code: func (s *Service) Dispatch(request []byte) []byte {
  	msg := bytes.SplitN(request, []byte{' '}, 2)
  	name := msg[0]
  
  	// Trim NULL byte terminator
  	name = bytes.TrimRight(name, "\x00")
  
  	handler, ok := s.handlers[string(name)]
  
  	if !ok {
  		log.Printf("unknown command: %q\n", name)
  		return []byte("Unknown Command")
  	}
  
  	var args []byte
  	if len(msg) == 2 {
  		args = msg[1]
  	}
  
  	response, err := handler(args)
  	if err == nil {
  		response = append([]byte("OK "), response...)
  	} else {
  		log.Printf("error calling %s: %s\n", name, err)
  		response = append([]byte("ERR "), response...)
  	}
  
  	return response
  }
docs: // Dispatch an incoming RPC request to a Handler