forked from jinzhu/configor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,18 @@ contacts: | |
email: [email protected] | ||
``` | ||
## Debug Mode & Verbose Mode | ||
Debug/Verbose mode is helpful when debuging your application, `debug mode` will let you know how `configor` loaded your configurations, like from which file, shell env, `verbose mode` will tell you even more, like those shell environments `configor` tried to load. | ||
|
||
```go | ||
// Enable debug mode or set env `CONFIGOR_DEBUG_MODE` to true when running your application | ||
configor.New(&configor.Config{Debug: true}).Load(&Config, "config.json") | ||
|
||
// Enable verbose mode or set env `CONFIGOR_VERBOSE_MODE` to true when running your application | ||
configor.New(&configor.Config{Verbose: true}).Load(&Config, "config.json") | ||
``` | ||
# Advanced Usage | ||
* Load mutiple configurations | ||
|
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
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