code: func (cfg *Configuration) DeviceMap() map[protocol.DeviceID]DeviceConfiguration {
  	m := make(map[protocol.DeviceID]DeviceConfiguration, len(cfg.Devices))
  	for _, dev := range cfg.Devices {
  		m[dev.DeviceID] = dev
  	}
  	return m
  }
docs: // DeviceMap returns a map of device ID to device configuration for the given configuration.