# withDataVolume

- Module: [CommunityToolkit.Aspire.Hosting.GoFeatureFlag](/reference/api/typescript/communitytoolkit.aspire.hosting.gofeatureflag.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Adds a named volume for the data folder to a GO Feature flag container resource.

## Definition

```typescript
interface GoFeatureFlagResource {
  // ... omitted for brevity
  withDataVolume(name?: string): GoFeatureFlagResource
}
```

## Parameters

- `name` (`string`) `optional`

## Returns

[GoFeatureFlagResource](/reference/api/typescript/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource.md) `builder`

## Applies to

- [GoFeatureFlagResource](/reference/api/typescript/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource.md)
