# GoAppResource.withModDownload

- Module: [Aspire.Hosting.Go](/reference/api/typescript/aspire.hosting.go.md)
- Defined on: [GoAppResource](/reference/api/typescript/aspire.hosting.go/goappresource.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`

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.

## Definition

```typescript
interface GoAppResource {
  // ... omitted for brevity
  withModDownload(): GoAppResource;
}
```

## Signature

```typescript
withModDownload(): GoAppResource
```

## Returns

[GoAppResource](/reference/api/typescript/aspire.hosting.go/goappresource.md) `builder`

## Defined on

- [GoAppResource](/reference/api/typescript/aspire.hosting.go/goappresource.md) -- `handle`
