I am new in Golang and I would like your advice on how to secure variables defined in env file within a go application.
The idea is to have the API keys defined in an env text file such as:
#API credentials from a 3rd party site CLIENT_ID=my_client_id CLIENT_SECRET=my_client_secret
Then in my go file with godotenv package to read those credentials like so:
How can I avoid people from reading the .env file? Is env file the recommended way to deal with credentials in a production application?