# HostEnvironment

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `interface`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

## Definition

```go
type HostEnvironment interface{}
```

## Methods

- [IsDevelopment](/reference/api/go/aspire.hosting/hostenvironment/isdevelopment.md) -- `method` -- Checks if the environment is Development.
  ```go
  IsDevelopment() (bool, error)
  ```
- [IsEnvironment](/reference/api/go/aspire.hosting/hostenvironment/isenvironment.md) -- `method` -- Checks if the environment matches the specified name.
  ```go
  IsEnvironment(environmentName string) (bool, error)
  ```
- [IsProduction](/reference/api/go/aspire.hosting/hostenvironment/isproduction.md) -- `method` -- Checks if the environment is Production.
  ```go
  IsProduction() (bool, error)
  ```
- [IsStaging](/reference/api/go/aspire.hosting/hostenvironment/isstaging.md) -- `method` -- Checks if the environment is Staging.
  ```go
  IsStaging() (bool, error)
  ```

## Applies to

- [`HostEnvironment`](/reference/api/go/aspire.hosting/hostenvironment.md)
