Aspire.Hosting.Go
Official
📦 Aspire.Hosting.Gov17.0.0Import path
apphost/modules/aspire8Functions
2Types
2 types, 8 functions and 1 members
Handles
DTOs
Functions
DistributedApplicationBuilder
GoAppResource
method
WithAppArgsbuilderPasses extra arguments to the Go program at runtime. In normal run mode they appear after
go run .; in Delve mode after the -- separator.WithAppArgs(args []any) GoAppResourcemethod
WithDelveServerbuilderStarts a configurable headless Delve debug server so that DAP-compatible clients can attach remotely. The application is launched with
dlv debug instead of go run. Delve must be available on the PATH.WithDelveServer(options ...*DelveServerOptions) GoAppResourcemethod
WithGoPrivatebuilderConfigures private Go module authentication for publish-time Dockerfile generation.
WithGoPrivate(privatePatterns []string, authHost string, options ...*WithGoPrivateOptions) GoAppResourcemethod
WithModDownloadbuilderRuns
go mod download before starting the application, pre-fetching all module dependencies into the local module cache without modifying go.sum . The main application waits for the download step to complete successfully before launching.WithModDownload() GoAppResourcemethod
WithModTidybuilderRuns
go mod tidy before starting the application, ensuring go.sum is up to date. The main application waits for the tidy step to complete successfully before launching.WithModTidy() GoAppResourcemethod
WithModVendorbuilderRuns
go mod vendor before starting the application, caching all module dependencies in the local vendor/ directory. The main application waits for the vendor step to complete successfully before launching.WithModVendor() GoAppResourcemethod
WithVetToolbuilderRuns
go vet ./... before starting the application to catch static analysis issues. The main application waits for the vet step to complete successfully before launching.WithVetTool() GoAppResource