A simple guide for application configuration using the Go language
Introduction When we develop programmes for ourselves, we frequently include some important options right in the source code, for example, the port on which our server will listen, the name of the database we are using, etc. But what if you try to let people use your programme? There is a good chance that your users will utilise the same database name that you are using during the development stage. They may even choose to use the same server port. Security is another concern. Do you desire everyone to be aware of your database password? It is not a good idea to maintain credentials in your code. Let's talk about how to prevent these issues and keep our application credentials isolated from the source code using efficient configuration approaches offered by the Go language. What is the Go language? Go is a statically typed, compiled high-level programming language . It was created in 2007 at Google by Robert Griesemer, Rob Pike, and Ken Thompson, although it wasn't released a...