mirror of
https://github.com/spf13/viper
synced 2025-05-07 20:57:18 +00:00
Update README informing config files without extension are supported
This commit is contained in:
parent
1655def7e9
commit
059e69cf18
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ if err != nil { // Handle errors reading the config file
|
|||
}
|
||||
```
|
||||
|
||||
*NOTE:* You can also have a file without an extension and specify the format programmaticaly. For those configuration files that lie in the home of the user without any extension like `.bashrc`
|
||||
|
||||
### Writing Config Files
|
||||
|
||||
Reading from config files is useful, but at times you want to store all modifications made at run time.
|
||||
|
|
Loading…
Add table
Reference in a new issue