Byte-Cats / microman

Minimal Go Backend Starter Kit without frameworks
MIT License
1 stars 1 forks source link

get env keys #4

Closed 4cecoder closed 2 years ago

4cecoder commented 2 years ago

a seperate function to get all the key value pairs from env and map them to a go type

for all the key value pairs:

type settings struct{ Name Type Name Type ... etc } // if not found in env print message to say that it couldn't be found then set defaults func searchEnv(){

}

4cecoder commented 2 years ago

add the new settings struct to the App object or api object