# WithGoffBindMount

- Module: [CommunityToolkit.Aspire.Hosting.GoFeatureFlag](/reference/api/go/communitytoolkit.aspire.hosting.gofeatureflag.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`GoFeatureFlagResource`](/reference/api/go/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Adds a bind mount for the goff configuration folder to a GO Feature flag container resource.

## Remarks

Add a GO Feature flag container to the application model and reference it in a .NET project. Additionally, in this
example a bind mount is added to the container to allow reading goff configuration.
```
var builder = DistributedApplication.CreateBuilder(args);
var goff = builder.AddGoFeatureFlag("goff")
.WithGoffBindMount("./goff");
var api = builder.AddProject<Projects.Api>("api")
.WithReference(goff);
builder.Build().Run();
```

## Definition

```go
func (GoFeatureFlagResource) WithGoffBindMount(source string) GoFeatureFlagResource
```

## Parameters

- `source` (`string`) -- The source directory on the host to mount into the container.

## Returns

[`GoFeatureFlagResource`](/reference/api/go/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource.md) -- The `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Applies to

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