Skip to content
DocsTry Aspire
DocsTry

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

methodaddGoAppbuilder
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
namestring
appDirectorystring
packagePathstringoptional= .
buildTagsstring[]optional
ldFlagsstringoptional
gcFlagsstringoptional
raceDetectorbooleanoptional= False
GoAppResource

Applies to

This method applies to the following types: