GoLang Environment Variables | Beginners Tutorial



GoLang Environment Variables | Beginners Tutorial

GoLang Environment Variables | Beginners Tutorial

In this video we are going to learn about getting and setting Environment Variables. These can be used to configure your application at runtime. We will look at what an environment variable is, how to read it from the system and from a .env file. We will touch on a system process and how it creates a fork and his it’s own copy of the environment variables.

More info on fork/exec and system process can be found here probably more than you need, but maybe enough to go down a rabbit hole:
https://en.wikipedia.org/wiki/Environment_variable#Design
https://en.wikipedia.org/wiki/Child_process
https://linux.die.net/man/2/fork

If you wanna support my channel, you can buy me a coffee:
☕️ https://www.buymeacoffee.com/nerdcademy
Coffee make the code go!!!

💻 Programming Laptop
https://kit.co/nerdcademy/framework-laptop

🎥 My Video Kit
https://kit.co/nerdcademy/my-video-kit

🖥 Video Editing PC
https://kit.co/nerdcademy/m1-mac-mini-setup

All code found in this video will be at:
https://github.com/NerdCademyDev/golang

#golang #nerdcademy

Comments are closed.