Created
September 28, 2015 06:26
-
-
Save pistarlabs/c70dc9595b88039e18e2 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
// Get database host or return empty string if not exists | |
host := cfg.UString("database.host") | |
// Get database host or return default passed value if not exists | |
host := cfg.UString("database.host", "default") | |
// Get database host and error | |
host, err := cfg.String("database.host") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment