1
00:00:01,420 --> 00:00:06,460
For some reason, some people don't like command line flags, so they prefer to use something like a

2
00:00:06,460 --> 00:00:14,470
dot on file, which is a hidden file named DOT EMV, that you specify your your environment variables

3
00:00:14,470 --> 00:00:18,060
in and go does support that and some people use it.

4
00:00:18,070 --> 00:00:23,350
I have used it in the past and particularly people that are coming from where it seems to be really,

5
00:00:23,350 --> 00:00:25,750
really popular and Python as well.

6
00:00:26,610 --> 00:00:29,620
Some people prefer to use it and the option does exist.

7
00:00:29,620 --> 00:00:33,160
And here is a repository that will give you that functionality.

8
00:00:33,160 --> 00:00:38,410
If you don't like command line flags, honestly, if you're going to be working with, say, docker

9
00:00:38,410 --> 00:00:41,230
images, command line flags, make your life a lot easier.

10
00:00:41,260 --> 00:00:44,290
You don't have to copy a dot on file in there during the docker build.

11
00:00:44,770 --> 00:00:46,690
But if you want to use dot on file, you can.

12
00:00:46,900 --> 00:00:48,580
And here's an example of how you do it.

13
00:00:48,610 --> 00:00:51,280
So all of the documentation is right here.

14
00:00:51,280 --> 00:00:57,130
You go get the package and then you just specify a dot on file at the root of your project and give

15
00:00:57,130 --> 00:01:00,400
it a name equals key or key equals value.

16
00:01:00,410 --> 00:01:01,570
Name equals value.

17
00:01:02,020 --> 00:01:05,970
You specify that and it shows you exactly how to read it right here.

18
00:01:06,220 --> 00:01:07,420
So it's very straightforward.

19
00:01:07,420 --> 00:01:11,740
And if you want to do that instead of command line flags, it's entirely up to you.
