Hi
Is it possible to set environment variables while running my app like...
*go run -env_var1="val1" main.go*
And then access *env_var* value as -
*os.Getenv("env_var1")*
I know, we can access command line arguments in go and set it manually as
environment variables. But am asking if there is already some feature like
this in the language.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/CAORUUQX-c31JHj-2360B%2BgYef7x7cwZAGsK-E2YoQuw0F_d1LA%40mail.gmail.com.