Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithModDownload

Method
📦 Aspire.Hosting.Go v17.0.0
func (GoAppResource) WithModDownload() GoAppResource

Signature

methodWithModDownloadbuilder
Runs 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() GoAppResource
GoAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: