# ResourceUrlsEditor.Add

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [ResourceUrlsEditor](/reference/api/go/aspire.hosting/resourceurlseditor.md)
- Version: `17.0.0`
- Kind: `method`

Adds a displayed URL.

## Definition

```go
type ResourceUrlsEditor interface {
    // ... omitted for brevity
    Add(
        url any,
        options ...*AddOptions,
    ) error
}
```

## Signature

```go
Add(
    url any,
    options ...*AddOptions,
) error
```

## Parameters

- `url` (`any`) -- The URL to add, specified as a string or reference expression.
- `options` (`...*AddOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*AddOptions` argument.

- `DisplayText` (`*string`) -- The optional display text to show for the URL.

## Returns

`error`

Returns `error`.

## Defined on

- [ResourceUrlsEditor](/reference/api/go/aspire.hosting/resourceurlseditor.md) -- `handle`
