code: func VolumesFromServices(cli client.VolumeAPIClient, projectName string, volumeConfigs map[string]*config.VolumeConfig, services *config.ServiceConfigs, volumeEnabled bool) (*Volumes, error) {
  	var err error
  	volumes := make([]*Volume, 0, len(volumeConfigs))
  	for name, config := range volumeConfigs {
  		volume := NewVolume(projectName, name, config, cli)
  		volumes = append(volumes, volume)
  	}
  	return &Volumes{
  		volumes:       volumes,
  		volumeEnabled: volumeEnabled,
  	}, err
  }
docs: // VolumesFromServices creates a new Volumes struct based on volumes configurations and
  // services configuration. If a volume is defined but not used by any service, it will return
  // an error along the Volumes.