Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/ory/viper

A maintained fork of spf13/viper with several bugfixes for races, panics, and other errors
https://github.com/ory/viper

Improve BindEnv details

d34be8d9ee3308fecdadaecf8139cabeaa4a64a3 authored over 5 years ago by Márk Sági-Kazár <[email protected]>
BindEnv details specified. Now less confusion.

96441b4b7414b184eb59823c0e6ca5494e4706d8 authored over 5 years ago by Bruce Wang <[email protected]>
Add dotenv documentation in README.md

2b4f7d3cde7da656a0fbb4ac4c6bbf7f033a51f9 authored over 5 years ago by victor23d <[email protected]>
Improve Unmarshal docs (#713)

Closes #589
Closes #588

3349bd9cc2887f06cc4efdc88894e7c3c0e6d872 authored over 5 years ago by Márk Sági-Kazár <[email protected]>
Fix example code

Unmarshal -> viper.Unmarshal

3b4aca75714a37276c4b1883630bd98c02498b73 authored over 5 years ago by okazu-dm <[email protected]>
fix(leak): fix leak in dependency magiconair/properities

b235f72abbc7afb0758c719052787e5c619b6bba authored over 5 years ago by liubog2008 <[email protected]>
ADD: installation method (#604)

* ADD: installation method

* Update README.md

fde59dd3e479c31f3015792ffec5a0ea2366d92c authored over 5 years ago by Alpha <[email protected]>
Fix indentation for yamlStringSettings (#651)

The indentation seemed messed up and didn't read well. This change fixes it.

0c777cfac1762bd58551498086741daa8157e204 authored over 5 years ago by Pawan Rawal <[email protected]>
Add support for int slice flags (#637)

* Add support for int slice flags

* Add int slice test to unmarshal

ad5ed02fa46d33a367ae1e563a3579f1a42e867e authored over 5 years ago by Márk Sági-Kazár <[email protected]>
Add WriteConfig documentation (#649)

0da4d41b2df3ce3c443cf65b49ca7abc68c1cfbc authored over 5 years ago by EmilLuta <[email protected]>
fixed marshal (#647)

a52795991d57899f91c64d254ff3985cfccd1faf authored over 5 years ago by 0xflotus <[email protected]>
Fix typo on README.md (#710)

33688bf23ceb2b51f5b5e0bae8ebc4e0ff9df9e9 authored over 5 years ago by Leonardo Fedalto <[email protected]>
Support `.env` format files (#528)

* Support `.env` format files

* Missing "dotenv" from SupportedExtns

3620d3d9e17742adf7d8e5503abbe515533a9786 authored over 5 years ago by mexisme <[email protected]>
Clean up dependencies

This commit was created by manually removing github.com/ugorji/go/codec from
the go.mod (which ...

b5bf975e5823809fb22c7644d008757f78a4259e authored over 5 years ago by Jean de Klerk <[email protected]>
Use GetInt64 for largenum in viper_test.go

to prevent overflow error on 32-bit platforms.

Fixes #704

2bd2732789208f67c9c82f5097ff3410fb0543e2 authored over 5 years ago by Anthony Fok <[email protected]>
Fix typo in viper_test.go: lagrenum → largenum

93066f92c615ab6c90523b3d4fe34379d2dea818 authored over 5 years ago by Anthony Fok <[email protected]>
Uint Support (#681)

* add GetUint/GetUint32/GetUint64

* Add Get(string) support for uint.

7a605a50e69cd1ea431c4a1e6eebe9b287ef6de4 authored over 5 years ago by Mitch Connors <[email protected]>
Add API for setting file permissions

fccfc2c271a59647debe6c5802362469a3700f0a authored over 5 years ago by Kris <[email protected]>
Remove superflous insensitiviseMaps in Unmarshal methods

Fixes #482

9e56dacc08fbbf8c9ee2dbc717553c758ce42bc9 authored almost 6 years ago by Bjørn Erik Pedersen <[email protected]>
Update go.sum with go1.11.4

In Go 1.11.4 a bug was fixed related to checksum calculation.
As a result, some packages might e...

d104d259b3380cb653bb793756823c3c41b37b53 authored almost 6 years ago by Mark Sagi-Kazar <[email protected]>
Make the map in MergeConfigMap case insensitive

6d33b5a963d922d182c91e8a1c88d81fd150cfd4 authored about 6 years ago by Bjørn Erik Pedersen <[email protected]>
Restrict Travis to >= Go 1.11, use Go Modules, and get the test to pass

41cd1c3aa32b2685fae6c296e6f044bc68922c0e authored about 6 years ago by Bjørn Erik Pedersen <[email protected]>
Add MergeConfigMap

Fixes #605

3535c75fa87d780db2436955c5d105de3e68f125 authored about 6 years ago by Bjørn Erik Pedersen <[email protected]>
Use assert.EqualValues for slice checking

06c7c0d9b3c7cfca13deff6e353a052e08828ad4 authored about 6 years ago by Bjørn Erik Pedersen <[email protected]>
Fixed TestBindPFlagsStringSlice()

Replaced Visit() by VisitAll(), so that the Changed attribute of
the updated flag is correctly set.

69647fb42256db99f5b51b9ffa4a423ce2d38aba authored about 6 years ago by Benoit Masson <[email protected]>
Moved shared resources out of the loops in TestBindPFlagsStringSlice()

Common code and resources put out of the loops, to improve
efficiency and readability.

ae103d7e593e371c69e832d5eb3347e2b80cbbc9 authored about 6 years ago by Benoit Masson <[email protected]>
Updated TestBindPFlagsStringSlice() to highlight a failure

When pflag marked as changed, the value is not detected
(and lower priority value used)

cc7e906d8847d935cffacac702f8e9d98156d604 authored about 6 years ago by Benoit Masson <[email protected]>
Lookup environment variables instead of checking if the value is empty

This commit adds an `AllowEmptyEnv` option that, default off, that when set will allow set, but ...

b7a3b954760cf2c8e97dbcf7f842e721b8d24110 authored about 6 years ago by Márk Sági-Kazár <[email protected]>
Revert "Cater for case-sensitive dependencies (#463)"

This reverts commit b56071875ac96633371c07c0ff77c0ba69f7fd82.

62edee319679b6ceaec16de03b966102d2dea709 authored about 6 years ago by Andrew Stuart <[email protected]>
Cater for case-sensitive dependencies (#463)

Switching jww from jwalterweatherman to jWalterWeatherman for cases when vgo is broken

b56071875ac96633371c07c0ff77c0ba69f7fd82 authored about 6 years ago by Panagiotis Moustafellos <[email protected]>
Merge branch 'master' into mergefix/Issue284_Kubernetes_config

8e194e8ad2432506b0a6dac93dd7876fca7a94a5 authored about 6 years ago by Andrew Stuart <[email protected]>
Use test log

0d783e7344b1c5a1dee7c838c22b4fd9523bf7b4 authored about 6 years ago by Andrew Stuart <[email protected]>
Fix nil pointer on watch function (#568)

2c12c60302a5a0e62ee102ca9bc996277c2f64f5 authored about 6 years ago by Andrew Stuart <[email protected]>
Revert "Add go.sum to .gitignore"

This reverts commit 841bd4ebcd794977d3df5c7e868861366415455b.

3171ef9a229903ce60a9513ec3899b63c003e91c authored over 6 years ago by Bjørn Erik Pedersen <[email protected]>
Add go.sum to .gitignore

Seems that it's better practice to keep that in Git for "main modules".

841bd4ebcd794977d3df5c7e868861366415455b authored over 6 years ago by Bjørn Erik Pedersen <[email protected]>
Add go.mod

8fb642006536c8d3760c99d4fa2389f5e2205631 authored over 6 years ago by Bjørn Erik Pedersen <[email protected]>
Fix overflow error on 32 bit architectures (#340)

* Handle int64 separately for 32 bit architectures

* Remove tests which result in an overflow...

0ac2068de99fd349edc4954d0e9b4a600d75da44 authored over 6 years ago by Dr. Tobias Quathamer <[email protected]>
Add README.md for Consul remote provider (#489)

8addaed22d65eb9b54dc9e9a28537f5b8b9ca756 authored over 6 years ago by Adhatama <[email protected]>
Revert "fix dep wrong case (#484)"

This reverts commit b7a62b2c001b4ad829bff1775d83509d19d89a68.

05116ad639474f7858b82b48004bfbdb4c51e367 authored over 6 years ago by Aarti Parikh <[email protected]>
fix dep wrong case (#484)

b7a62b2c001b4ad829bff1775d83509d19d89a68 authored over 6 years ago by kun <[email protected]>
correct a comment on viper.Set() (#553)

correct regiser with register

e436d04e6d88ca621a687f97fbe6dbbf1195bf04 authored over 6 years ago by Robin Brämer <[email protected]>
travis: update go versions (#558)

40b1bbb9a8eaf94fd560b34dde04fa267a3c5871 authored over 6 years ago by Michael <[email protected]>
refactor test to avoid negative counter on WG

Signed-off-by: Xavier Coulon <[email protected]>

41f829b2c9ecf78bcc45a9c18cd9afe1051d86a5 authored over 6 years ago by Xavier Coulon <[email protected]>
Merge branch 'master' into Issue284_Kubernetes_config

e12d3d32d176d9a4a48038b22e294bb5a6fb9050 authored over 6 years ago by Xavier Coulon <[email protected]>
Support customising mapstructure.DecoderConfig for Unmarshal

* Added a new `DecoderConfigOption` type allowing the user to write custom
functions that can ...

907c19d40d9a6c9bb55f040ff4ae45271a4754b9 authored over 6 years ago by Chris Reeves <[email protected]>
apply review comments

use masks for checking the events.

Signed-off-by: Xavier Coulon <[email protected]>

c1250e5dd7e8b4e2911c6c6aa5b83be016bd2a3c authored over 6 years ago by Xavier Coulon <[email protected]>
Update README.md (#470)

Fix typo in the environment variable usage documentation.

d493c32b69b8c6f2377bf30bc4d70267ffbc0793 authored over 6 years ago by Adriano <[email protected]>
Add example of marshalling to string (#531)

fb7a06477f21a08e24c82d4bddc131d56fdef129 authored over 6 years ago by Brice Fernandes <[email protected]>
Refactor with WaitGroup and check channel is open

Signed-off-by: Xavier Coulon <[email protected]>

242f4890f5f6239217fa5c45bb6de3b4b5509d3b authored over 6 years ago by Xavier Coulon <[email protected]>
Add GetInt32

15738813a09db5c8e5b60a19d67d3f9bd38da3a4 authored over 6 years ago by Travis Jeffery <[email protected]>
travis: update go versions

8dc2790b029dc41e2b8ff772c63c26adbb1db70d authored over 6 years ago by Michael Käufl <[email protected]>
Undexport GetConfigFile

It was exported in previous commit, but we have GetConfigFileUsed -- so use that.

b5e8006cbee93ec955a89ab31e0e3ce3204f3736 authored almost 7 years ago by Bjørn Erik Pedersen <[email protected]>
Export and fix GetConfigFile

00ed41cdba2612ddf07559b1cae78ca23d213ba6 authored almost 7 years ago by Bjørn Erik Pedersen <[email protected]>
WatchConfig and Kubernetes (#284)

Support override of symlink to config file
Include tests for WatchConfig of regular files, as we...

e0f7631cf3ac7e7530949c7e154855076b0a4c17 authored almost 7 years ago by Xavier Coulon <[email protected]>
travis: update go versions

aafc9e6bc7b7bb53ddaa75a5ef49a17d6e654be5 authored almost 7 years ago by Davor Kapsa <[email protected]>
Feature/write config (#287)

* Added method to write into TOML file.

* Added functionality to export configuration based o...

1a0c4a370c3e8286b835467d2dfcdaf636c3538b authored about 7 years ago by Adam Sherwood <[email protected]>
Allow exists util function to take afero.Fs so it can be used with non-deafult instances of Viper (#405)

Signed-off-by: Jeff Lindsay <[email protected]>

4dddf7c62e16bce5807744018f5b753bfe21bbd2 authored about 7 years ago by Jeff Lindsay <[email protected]>
Fix incorrect name of function in README.md

Change `SetEnvReplacer` to `SetEnvKeyReplacer`

8ef37cbca71638bf32f3d5e194117d4cb46da163 authored about 7 years ago by Kamil Wargula <[email protected]>
Go fmt viper.go

d9cca5ef33035202efb1586825bdbb15ff9ec3ba authored about 7 years ago by Bjørn Erik Pedersen <[email protected]>
Add string slice support to defaultDecoderConfig

This way it correctly decodes string slices as well.

266e588e9eca7ee317e9f0446a01934675a4d261 authored about 7 years ago by Alexander Krasnukhin <[email protected]>
Add Clairctl as a Go project that uses Viper

See #354

25b30aa063fc18e48662b86996252eabdcf2f0c7 authored over 7 years ago by JG² <[email protected]>
Run gofmt on all existing code

Also:

* Add check to .travis.yml that verifies that all code is gofmt-compliant
* Touch up s...

8ac2e2e20f3d24e5b3b85ae0fcd11bdb0caf0f15 authored over 7 years ago by Nick Miyake <[email protected]>
Fix a few minor typos/formatting issues with comments

See #350

f257d19100ad11ec71a89d431c0fbd3933c0b235 authored over 7 years ago by Nick Miyake <[email protected]>
Improve documentation for flags

See #329

04691bc570c10b492d8bf7b66aae05e0c9ecb0db authored over 7 years ago by Brad Peabody <[email protected]>
Fix grammar/typo in comment for getEnv()

See #310

9766537120e76571a9a2dcafe4b25a3201dcac22 authored over 7 years ago by Nikola Kovacs <[email protected]>
Fix indentation in README.md

See #345

16a945857303e8ea14318664816932b07a0ed5ce authored over 7 years ago by Albert Nigmatzianov <[email protected]>
Make minor copy-editing changes to README.md

df7314a14e26fea5443bb6e696b207d14d9a266d authored over 7 years ago by Anthony Fok <[email protected]>
Prevent redundant type assertion in Get

There is no need to assert variables which already have appropriate
type.

name old...

c1de95864d73a5465492829d7cb2dd422b19ac96 authored over 7 years ago by Albert Nigmatzianov <[email protected]>
Fix apostrophes in README

Fix "it's" -> "its".

a1ecfa6a20bd4ef9e9caded262ee1b1b26847675 authored over 7 years ago by Nick Miyake <[email protected]>
Properly handle string slice values

0967fc9aceab2ce9da34061253ac10fb99bba5b2 authored over 7 years ago by Paweł Szczur <[email protected]>
Fix UnmarshalKey handling of time.Duration

* Failing test for key unmarshaling with nested structs containing time.Duration

* Fix Unmars...

5d46e70da8c0b6f812e0b170b7a985753b5c63cb authored over 7 years ago by Miguel Eduardo Gil Biraud <[email protected]>
Avoid the start of go-routines which are never get stopped

84f94806c67f59dd7ae87bc5351f7a9c94a4558d authored almost 8 years ago by Wolfgang Friedl <[email protected]>
Revert "remote: Avoid the start of go-routines which are never get stopped"

This reverts commit 11ca61e88892f9cb3cff255826cb7ace534d340d.

0b5690fd875739811249ca79d24afd8f89f188c6 authored almost 8 years ago by Bjørn Erik Pedersen <[email protected]>
remote: Avoid the start of go-routines which are never get stopped

11ca61e88892f9cb3cff255826cb7ace534d340d authored almost 8 years ago by Wolfgang Friedl <[email protected]>
travis: Bump to Go 1.7.5 and 1.8 (Yay!)

7538d73b4eb9511d85a9f1dfef202eeb8ac260f4 authored almost 8 years ago by Bjørn Erik Pedersen <[email protected]>
Only save config on success in ReadInConfig

If the user creates a invalid config file while watching for config
changes, the previous, valid...

d90f2bb139e1c12fa276ee449cd68e8c6c5c1602 authored almost 8 years ago by Cameron Moore <[email protected]>
Fix MergeInConfig error return

UnsupportedConfigError was returned if config file not found

* Swap getConfigFile and getConf...

5ed0fc31f7f453625df314d8e66b9791e8d13003 authored about 8 years ago by Kevin GEORGES <[email protected]>
Document case-insensitivity for key taking methods

651d9d916abc3c3d6a91a12549495caba5edffd2 authored about 8 years ago by Albert Nigmatzianov <[email protected]>
Copy and insensitivise maps in Set

Fixes #261
Closes #265

80ab6657f9ec7e5761f6603320d3d58dfe6970f6 authored about 8 years ago by Bjørn Erik Pedersen <[email protected]>
Fixed AllKeys() to include env values added with BindEnv()

* Fixed: values bound with BindEnv added to AllKeys()

Cast was not working, and v.env wasn't ...

285f1510193473600929e1183915f6220fabab94 authored about 8 years ago by Benoît Masson <[email protected]>
Increase performance of nested keys search

* Fixed: insensitiviseMaps and tests

All keys (even nested ones) are now lower-cased recursiv...

50515b700e02658272117a72bd641b6b7f1222e5 authored about 8 years ago by Benoît Masson <[email protected]>
Allow errors to propagate from getConfigFile(). (#161)

- propagate ConfigFileNotFoundError instead of using unsupported config type error when config f...

44208030b391907a5ec5c5658470bdb6e6169073 authored about 8 years ago by Jonathan Anderson <[email protected]>
Correct FlagValue interface examples in Readme (#254)

`IsChanged` is actually named `HasChanged`, and the examples were missing function return declar...

c14ce6d43cf5e22e2bd44938f3f45a2761c18350 authored about 8 years ago by Nils Landt <[email protected]>
Restore performance for the simple case

```
BenchmarkGetBool-4 1021 481 -52.89%
BenchmarkGet-4 ...

51f23d1f1c56a7773ae8f2cfd038f7996ecc9ac2 authored about 8 years ago by Bjørn Erik Pedersen <[email protected]>
Add BenchmarkGet

54b81535af6c3bceed4672011ef221de7104bbd6 authored about 8 years ago by Bjørn Erik Pedersen <[email protected]>
Fix space between Go projects and badges

21ea37b67349cb6594eea6eaf765b2a7b96f03e2 authored about 8 years ago by Albert <[email protected]>
Add GoDoc badge

b61deff9070db474aa7668f55bf6eec00008409e authored about 8 years ago by Albert <[email protected]>
Nested maps (#195)

Fixes #71, #93, #158, #168, #209, #141, #160, #162, #190

* Fixed: indentation in comment
* F...

ec4eb2fa8549869ae7a2accd4fcc83d1c0555c15 authored about 8 years ago by Benoît Masson <[email protected]>
Check for nil in viper.Sub

Fixes #191

670c42a85b2a2215949acd943cb8f11add317e3f authored about 8 years ago by Cameron Moore <[email protected]>
Remove expensive TRACE logging

Also avoid doing a strings.Split in the Get common case.

Any TRACE statements in these hot pa...

382f87b929b84ce13e9c8a375a4b217f224e6c65 authored about 8 years ago by Bjørn Erik Pedersen <[email protected]>
Add benchmark for GetBool

```
BenchmarkGetBool-4 100000 12952 ns/op 225 B/op 10 al...

438cc0d5c8791cdfc48adf605914f57c9bb0c29e authored about 8 years ago by Bjørn Erik Pedersen <[email protected]>
Support time.Duration in viper.Unmarshal (#205)

* Fixes #105

e26d6aedc15334f7c2bca88e37037f717659d9b8 authored about 8 years ago by Yauhen Lazurkin <[email protected]>
Fix retrieval of pflag stringSlice (#240)

Fixes #112
Changes some logging directives to use Printf

ed0a9674c6ef3646e218d8bb70708d250e94354b authored about 8 years ago by Cameron Moore <[email protected]>
Small refactorings (#230)

* Fix typo in description of UnmarshalExact
* Omit 2nd values from range loops
* Delete findCW...

a78f70b5b977efe08e313a9e2341c3f5457abdaf authored over 8 years ago by Albert <[email protected]>
Prevent shadowning of keys when a nested key's value is nil.

2f6a41490bc86fa9a8fb2fc03526a5795e904a17 authored over 8 years ago by Max Wolter <[email protected]>
Fix typo in README (#227)

Fixed typo & superfluous white space in README

16990631d4aa7e38f73dbbbf37fa13e67c648531 authored over 8 years ago by Albert <[email protected]>
Handle TOML Library Licensing

This patch updates the package used for parsing TOML content from
"github.com/BurntSushi/toml" t...

7fb2782df3d83e0036cc89f461ed0422628776f4 authored over 8 years ago by Vladimir Vivien <[email protected]>
Add Hugo CI Step to Validate Viper

Since Hugo is such a heavy user of Viper, this patch adds an
after_success section to the Travi...

fe9c8b59e176537a2a08498fe6a5e131a3b6a304 authored over 8 years ago by Schley Andrew Kutz <[email protected]>
Bump Travis to Go 1.7

654fc7bb54d0c138ef80405ff577391f79c0c32d authored over 8 years ago by Bjørn Erik Pedersen <[email protected]>
Add getter for global Viper

346299ea79e446ebdddb834371ceba2e5926b732 authored over 8 years ago by Bjørn Erik Pedersen <[email protected]>