Initializerhummingbird 2.3.0Hummingbird
init
initialize from environment variables
Environment.swift:46init()
Other members in extension
Type members
init(dictionaryLiteral: (String, String)...
) initialize from dictionary literal
init(from: Decoder
) throws Initialize from Decodable
init(values: [String : String]
) initialize from dictionary
static func dotEnv(String
) async throws -> Environment Create Environment initialised from the
.env
file
Instance members
var description: String
func get(String
) -> String? Get environment variable with name
func get<T>(String, as: T.Type
) -> T? Get environment variable with name as a certain type
func merging(with: Environment
) -> Environment Merge two environment variable sets together and return result
func set(String, value: String?
) Set environment variable