package errors type EnvironmentExistsError struct { name string } func (e *EnvironmentExistsError) Error() string { return "environment " + e.name + " already exists" } func NewEnvironmentExistsError(name string) *EnvironmentExistsError { return &EnvironmentExistsError{name: name} }