Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Created February 13, 2020 13:51
Show Gist options
  • Save ripienaar/4dcf1d5a490bdc2f529ff8e15b6cd07f to your computer and use it in GitHub Desktop.
Save ripienaar/4dcf1d5a490bdc2f529ff8e15b6cd07f to your computer and use it in GitHub Desktop.
20200213_choria_config_blog
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