Kevin Franklin Kim
1bc0a5ac7a
add etcd3 to supported providers
2022-07-10 13:48:18 +02:00
Sungyun Hur
a4e4f65a0c
Update README.md
2022-07-10 12:51:24 +02:00
mjmaisey
b1b8b3d4d4
Fix go-staticcheck failures (ST1005)
...
Fix to example code, which fails static checks related to acceptable formats of error strings if used.
2022-06-16 21:19:37 +02:00
Mark Sagi-Kazar
6804da723f
chore!: drop Go 1.14 support
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-04-13 13:37:21 +02:00
Mark Sagi-Kazar
65f16c1738
docs: fix indentation in code samples
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-09-19 22:10:43 +02:00
连修明
eb876e1a15
update readme.md
...
```go
viper.WatchConfig()
viper.OnConfigChange(func(e fsnotify.Event) {
fmt.Println("Config file changed:", e.Name)
})
```
this code will cause data race, please check this question:
https://stackoverflow.com/questions/68915944/viper-dynamically-loading-config-file-has-data-race/68919971#68919971
2021-09-04 19:33:59 +02:00
Mark Sagi-Kazar
030b739e60
docs: add section about decoding formats
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-06-25 14:49:58 +02:00
lmx-Hexagram
3fcad43618
update %s to %w
...
I apologize for my rude pr on modify readme
I think it is better to use %w in fmt.Errorf instead of %s
(see go doc)[https://golang.org/pkg/errors/ ]
2021-06-17 19:17:07 +02:00
Chris Waldon
cb41ae0ab8
doc: discuss concurrency in README
2021-04-15 18:20:20 +02:00
Mark Sagi-Kazar
4613c4a95f
docs: move troubleshooting to a new document
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-02-15 07:47:45 +01:00
Mark Sagi-Kazar
a86148e76e
docs: add note about go modules to the readme
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-02-15 07:47:45 +01:00
Mark Sagi-Kazar
e66f940bcc
docs: add troubleshooting guide about package not being found
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-02-15 07:47:45 +01:00
Márk Sági-Kazár
da70fee083
Add troubleshooting about unmarshaling
2020-12-17 22:13:27 +01:00
Mark Sagi-Kazar
bba82cfc61
docs: add run on repl.it badge with example
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2020-12-03 01:43:52 +01:00
Márk Sági-Kazár
493643fd5e
Update README.md
2020-11-03 14:29:48 +01:00
Pablo Santiago Blum de Aguiar
f415025b98
Fix a minor typo in README.md
2020-10-30 23:19:06 +01:00
Meysam GanJi
4938331709
fix typo
2020-10-12 09:45:20 +02:00
dylandreimerink
33bcdc91ea
Added support for accessing slices ( #861 )
...
* Added support for accessing slices
* Processed PR feedback
- renamed searchMapWithPathPrefixes to searchIndexableWithPathPrefixes
- moved source type specific search logic to speparate functions
- Inverted if statments to avoid the arrow pattern
* Quickly return from searchSliceWithPathPrefixes and searchMapWithPathPrefixes functions without intermediate variables
2020-10-04 20:07:34 +02:00
Mark Sagi-Kazar
f67a901790
docs: add go version badge and update pkg.go.dev badge
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2020-09-30 13:15:51 +02:00
Gabriel Aszalos
ea890285a5
Update docs
2020-09-30 12:44:21 +02:00
Mark Sagi-Kazar
29c3027c49
docs: rewrite sub documentation
...
Fixes #988
Fixes #987
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2020-09-27 22:59:46 +02:00
Mark Sagi-Kazar
6d4eb764b6
Add feedback form to the readme
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2020-09-27 01:06:10 +02:00
Mark Sagi-Kazar
406ea27dc0
Add feedback form to the readme
...
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2020-09-27 01:04:34 +02:00
Mark Sagi-Kazar
e34fb51dd7
Add mentioned in awesome badge
2020-04-09 23:56:02 +02:00
Mark Sagi-Kazar
7eea3718bf
Remove go version badge
2020-04-09 22:21:21 +02:00
Mark Sagi-Kazar
aa8e4d4983
Update badges and logo
2020-04-09 22:20:35 +02:00
Alexey Maslov
b31a49291e
updated docs in README.
2020-02-20 00:36:32 +01:00
Alexey Maslov
502400c0d9
changed github.com/xordataexchange/crypt to github.com/bketelsen/crypt.
2020-02-20 00:36:32 +01:00
Pedro Silva
9cd571279d
Extensionless files only allowed when config type is set ( #827 )
...
* Only consider files without extension if the config type is explicitly specified
* Hides unused variable in test
* First check for config type then for file without extension
2020-01-16 19:23:50 +01:00
Mark Sagi-Kazar
06ab5a4b62
Add documentation about unmarshaling into embedded structs
2020-01-08 10:58:26 +01:00
Mark Sagi-Kazar
4ad4c8df70
Add string replacer interface and env key replacer option
2019-12-06 14:13:46 +01:00
Mark Sagi-Kazar
6fcf985c5a
Fix readme
2019-12-06 14:01:42 +01:00
Mark Sagi-Kazar
a842b8f618
Replace SetKeyDelimiter with functional options
2019-12-06 14:01:42 +01:00
Mark Sagi-Kazar
9a405be5c0
Add SetKeyDelimiter to the README
2019-12-06 14:01:42 +01:00
Mark Sagi-Kazar
b6ced70067
Generic improvements
2019-12-06 14:01:30 +01:00
Mark Sagi-Kazar
52836e66ad
Improve badges
2019-12-06 14:01:30 +01:00
Mark Sagi-Kazar
6895c083d6
INI is supported
2019-12-06 14:01:30 +01:00
Kévin Dunglas
01d7d76eb0
Add Mercure in the list of projects using Viper
2019-11-08 13:18:39 +01:00
Pedro Silva
d1c60d9e69
Support config files with no extensions ( #722 )
...
* Support config files with no extensions
* Update README informing config files without extension are supported
2019-11-06 14:54:13 +01:00
AGirard
b8221cf4ee
Add GetIntSlice helper method
2019-07-13 12:04:36 +02:00
lucperkins
5ae3a072d1
Add documentation for no config file found
...
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-07-13 11:37:02 +02:00
Márk Sági-Kazár
d34be8d9ee
Improve BindEnv details
2019-07-13 11:35:03 +02:00
Bruce Wang
96441b4b74
BindEnv details specified. Now less confusion.
2019-07-13 11:35:03 +02:00
victor23d
2b4f7d3cde
Add dotenv documentation in README.md
2019-07-13 11:28:35 +02:00
Márk Sági-Kazár
3349bd9cc2
Improve Unmarshal docs ( #713 )
...
Closes #589
Closes #588
2019-06-14 11:17:12 -04:00
okazu-dm
3b4aca7571
Fix example code
...
Unmarshal -> viper.Unmarshal
2019-06-13 10:51:37 +02:00
Alpha
fde59dd3e4
ADD: installation method ( #604 )
...
* ADD: installation method
* Update README.md
2019-06-11 16:58:53 -04:00
Pawan Rawal
0c777cfac1
Fix indentation for yamlStringSettings ( #651 )
...
The indentation seemed messed up and didn't read well. This change fixes it.
2019-06-11 16:53:59 -04:00
EmilLuta
0da4d41b2d
Add WriteConfig documentation ( #649 )
2019-06-11 16:51:04 -04:00
0xflotus
a52795991d
fixed marshal ( #647 )
2019-06-11 16:50:29 -04:00