# WithVetTool

- Module: [Aspire.Hosting.Go](/reference/api/go/aspire.hosting.go.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`GoAppResource`](/reference/api/go/aspire.hosting.go/goappresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Runs `go vet ./...` before starting the application to catch static analysis issues. The main application waits for the vet step to complete successfully before launching.

## Definition

```go
func (GoAppResource) WithVetTool() GoAppResource
```

## Returns

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

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

## Applies to

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