updated ezconf
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
Environment string // ENV SLAPSHOT_ENVIRONMENT: API environment to connect to (default: staging)
|
||||
Key string // ENV SLAPSHOT_API_KEY: API Key for authorisation with the API (required)
|
||||
Environment string `ezconf:"SLAPSHOT_ENVIRONMENT,default:staging,description:API environment to connect to"`
|
||||
Key string `ezconf:"SLAPSHOT_API_KEY,required,description:API Key for authorisation with the API"`
|
||||
}
|
||||
|
||||
func ConfigFromEnv() (any, error) {
|
||||
|
||||
Reference in New Issue
Block a user