Created
May 16, 2020 14:29
-
-
Save oxlb/8e3e645c95237a026fbdc3093014f41a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Dev Configuration\n") | |
configuration := GetConfig() | |
fmt.Println(configuration.DB_USERNAME) | |
fmt.Println(configuration.DB_PASSWORD) | |
fmt.Println(configuration.DB_PORT) | |
fmt.Println(configuration.DB_NAME) | |
fmt.Println("\nProd Configuration\n") | |
configuration = GetConfig("prod") | |
fmt.Println(configuration.DB_USERNAME) | |
fmt.Println(configuration.DB_PASSWORD) | |
fmt.Println(configuration.DB_PORT) | |
fmt.Println(configuration.DB_NAME) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment