# GoFeatureFlagResource

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

A resource that represents a GO Feature Flag instance

## Definition

```go
type GoFeatureFlagResource interface {
    ExpressionValue
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithConnectionString
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `ExpressionValue`
- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithConnectionString`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `ConnectionStringExpression`: `*ReferenceExpression` `get` -- Gets the connection string expression for the GO Feature Flag instance.
- `Host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `Port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `PrimaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the GO Feature Flag instance. This endpoint is used for all API calls over HTTP.
- `UriExpression`: `*ReferenceExpression` `get` -- Gets the connection URI expression for the GO Feature Flag instance.

## Methods

- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a GO Feature flag container resource.
  ```go
  WithDataVolume(options ...*WithDataVolumeOptions) GoFeatureFlagResource
  ```
- [WithGoffBindMount](/reference/api/go/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource/withgoffbindmount.md) -- `method` -- Adds a bind mount for the goff configuration folder to a GO Feature flag container resource.
  ```go
  WithGoffBindMount(source string) GoFeatureFlagResource
  ```
- [WithLogLevel](/reference/api/go/communitytoolkit.aspire.hosting.gofeatureflag/gofeatureflagresource/withloglevel.md) -- `method`
  ```go
  WithLogLevel(logLevel GoFeatureFlagLogLevel) GoFeatureFlagResource
  ```
