# withAppArgs

- Module: [Aspire.Hosting.Go](/reference/api/typescript/aspire.hosting.go.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Passes extra arguments to the Go program at runtime. In normal run mode they appear after `go run .`; in Delve mode after the `--` separator.

## Definition

```typescript
interface GoAppResource {
  // ... omitted for brevity
  withAppArgs(args: any[]): GoAppResource
}
```

## Parameters

- `args` (`any[]`)

## Returns

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

## Applies to

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