install the viper package: go get github.com/spf13/viper .yaml file contains the environmental variables. it can read from yaml as well as from the environments passed. export linetoken="jadcloudtechnology"