package errors import "fmt" type SecretExistsError struct { secret string } func (e *SecretExistsError) Error() string { return fmt.Sprintf("secret %s already exists", e.secret) } func NewSecretExsistsError(secret string) *SecretExistsError { return &SecretExistsError{secret: secret} }