Re: [go-nuts] Naming environment variables

2020-08-26 Thread Siddhesh Divekar
Hi Ian,

Got it !

Thanks.

On Wed, Aug 26, 2020 at 9:09 AM Ian Lance Taylor  wrote:

> On Wed, Aug 26, 2020 at 8:03 AM Siddhesh Divekar
>  wrote:
> >
> > What is the convention to name an environment variable if the program is
> going to set it and use it.
> > I have seen both ABC_DEF & AbcDef forms of it.
>
> Do you mean the name used for the environment variable, or the name
> used in the Go program?
>
> Most environment variables use names in all caps with underscores, so
> ABC_DEF.
>
> Most Go variables use mixed caps, so AbcDef.
>
> Ian
>


-- 
-Siddhesh.

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAMjfk%2BjcS5q7ahpgw%3D40vnvtOtmPNqLXQnQRpEb5-v96X5uqpQ%40mail.gmail.com.


Re: [go-nuts] Naming environment variables

2020-08-26 Thread Ian Lance Taylor
On Wed, Aug 26, 2020 at 8:03 AM Siddhesh Divekar
 wrote:
>
> What is the convention to name an environment variable if the program is 
> going to set it and use it.
> I have seen both ABC_DEF & AbcDef forms of it.

Do you mean the name used for the environment variable, or the name
used in the Go program?

Most environment variables use names in all caps with underscores, so ABC_DEF.

Most Go variables use mixed caps, so AbcDef.

Ian

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXX36wGFaVyts-SekdQGyJ0ZoR4VPAyMnVMONnyXZnO6w%40mail.gmail.com.


[go-nuts] Naming environment variables

2020-08-26 Thread Siddhesh Divekar
Hi,

What is the convention to name an environment variable if the program is
going to set it and use it.
I have seen both ABC_DEF & AbcDef forms of it.

-- 
-Siddhesh.

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAMjfk%2BgifGzE7oAsSSAEDmm9bSfPF0ZJrTQdDg4hiTR%2ByH93ZQ%40mail.gmail.com.