code: func (r *Robot) Device(name string) Device {
  	if r == nil {
  		return nil
  	}
  	for _, device := range *r.devices {
  		if device.Name() == name {
  			return device
  		}
  	}
  	return nil
  }
docs: // Device returns a device given a name. Returns nil if the Device does not exist.