To show the go environment variables, execute the following command:
go env
To get them in code, you can use the following snippet:
os.Getenv(“ENVIRONMENT_VARIABLE_NAME”)
To show the go environment variables, execute the following command:
go env
To get them in code, you can use the following snippet:
os.Getenv(“ENVIRONMENT_VARIABLE_NAME”)