Created
February 13, 2020 13:51
-
-
Save ripienaar/4dcf1d5a490bdc2f529ff8e15b6cd07f to your computer and use it in GitHub Desktop.
20200213_choria_config_blog
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
c := &Config{} | |
doc := confkey.KeyDoc(c, "loglevel", "Config") | |
// Description of the field, also have Type(), URL(), Default(), Validation(), | |
// Deprecate(), Environment(), ConfigKey() and StructKey() | |
fmt.Printf("Description: %s\n", doc.Description()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment