Skip to content
Docs Try Aspire
Docs Try

addGoApp

Method
📦 Aspire.Hosting.Go v13.4.0-preview.1.26281.18
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addGoApp(
name: string,
appDirectory: string,
packagePath?: string,
buildTags?: string[],
ldFlags?: string,
gcFlags?: string,
raceDetector?: boolean): GoAppResource;
}

Signature

method addGoApp builder
Adds a Go application to the application model. The Go toolchain must be available on the PATH.
addGoApp(
name: string,
appDirectory: string,
packagePath?: string,
buildTags?: string[],
ldFlags?: string,
gcFlags?: string,
raceDetector?: boolean): GoAppResource
name string
appDirectory string
packagePath string optional = .
buildTags string[] optional
ldFlags string optional
gcFlags string optional
raceDetector boolean optional = False
GoAppResource

Applies to

This method applies to the following types: