# GoAppResource.withAppArgs

- 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`

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;
}
```

## Signature

```typescript
withAppArgs(args: any[]): GoAppResource
```

## Parameters

- `args` (`any[]`)

## Returns

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

## Defined on

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