# GolangAppHostingExtension

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Golang](/reference/api/csharp/communitytoolkit.aspire.hosting.golang.md)
- Version: `13.1.1`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.Golang/GolangAppHostingExtension.cs)

Provides extension methods for adding Golang applications to an `Hosting.IDistributedApplicationBuilder`.

## Definition

```csharp
namespace Aspire.Hosting;

public static class GolangAppHostingExtension
{
    // ...
}
```

## Methods

- [AddGolangApp(IDistributedApplicationBuilder, string, string, string[])](/reference/api/csharp/communitytoolkit.aspire.hosting.golang/golangapphostingextension/methods.md#addgolangapp-idistributedapplicationbuilder-string-string-string) : `IResourceBuilder<GolangAppExecutableResource>` `extension` `obsolete` -- Adds a Golang application to the application model. Executes the executable Golang app.
- [AddGolangApp(IDistributedApplicationBuilder, string, string, string[]?, string[]?)](/reference/api/csharp/communitytoolkit.aspire.hosting.golang/golangapphostingextension/methods.md#addgolangapp-idistributedapplicationbuilder-string-string-string-string) : `IResourceBuilder<GolangAppExecutableResource>` `extension` -- Adds a Golang application to the application model. Executes the executable Golang app.
- [AddGolangApp(IDistributedApplicationBuilder, string, string, string, string[]?, string[]?)](/reference/api/csharp/communitytoolkit.aspire.hosting.golang/golangapphostingextension/methods.md#addgolangapp-idistributedapplicationbuilder-string-string-string-string-string) : `IResourceBuilder<GolangAppExecutableResource>` `extension` -- Adds a Golang application to the application model. Executes the executable Golang app.
