Environment Utilities
Utility functions for managing environment variables in ClueQuest Go SDK
utils.GetEnv()
The getEnv()
function retrieves the value of an environment variable. If the variable is not set, it returns a default value.
Arguments
key
(string): The name of the environment variable to retrieve.def
(string): The default value to return if the environment variable is not set.
Example
var := utils.GetEnv("VARIABLE_NAME", "default_value")