koanf

Simple, extremely lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.

MIT License

Stars
2.7K
Committers
46

Bot releases are hidden (Show)

koanf - v2.1.1 Latest Release

Published by knadh 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v2.1.0...v2.1.1

koanf - v2.1.0

Published by knadh 9 months ago

Important

https://github.com/mitchellh/mapstructure/issues/349#issuecomment-1860372162 is discontinued and koanf has switched to using the fork github.com/go-viper/mapstructure/v2.

If you are referencing the mapstructure lib in your code (custom DecoderConfig), you have to switch the paths to the above forked version of koanf.

github.com/mitchellh/mapstructure => github.com/go-viper/mapstructure/v2

What's Changed

Full Changelog: https://github.com/knadh/koanf/compare/v2.0.2...v2.1.0

koanf - v2.0.2

Published by knadh 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v2.0.1...v2.0.2

koanf - v2.0.1

Published by knadh over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v2.0.0...v2.0.1

koanf - v2.0.0

Published by knadh over 1 year ago

This is a major breaking change that ends koanf v1 (v1.5.0) and moves to v2. Continued usage of v1 is unaffected. While koanf does not bundle external dependencies into its core thereby avoiding them in the build, a go get would still pull them and go.mod, bringing in unnecessary references as all the providers and parsers were "sub" packages of the main module.

This PR upgrades koanf to v2 and separates every single provider and parser package into its own module, go.mod, and release tag (eg: providers/yaml/v0.1.0). That is, one-repository, many modules. This removes references to all indirect dependencies in the main koanf package significantly de-cluttering it.

What changes?

  • Going forward, koanf references should change to github.com/knadh/koanf/v2.
  • The required parsers and providers should be installed explicitly as they do not come bundled with the main koanf package anymore. Eg: go get github.com/knadh/koanf/providers/s3, go get github.com/knadh/koanf/parsers/json etc.
  • That's all. There is no change in functionality.

Full Changelog: https://github.com/knadh/koanf/compare/v1.5.0...v2.0.0

koanf - v1.5.0

Published by knadh over 1 year ago

What's Changed

Full Changelog: https://github.com/knadh/koanf/compare/v1.4.5...v1.5.0

koanf - v1.4.5

Published by knadh almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.4.4...v1.4.5

koanf - v1.4.4

Published by knadh almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.4.3...v1.4.4

koanf - v1.4.2

Published by knadh over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.4.1...v1.4.2

koanf - v1.4.1

Published by knadh over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.4.0...v1.4.1

koanf - v1.4.0

Published by knadh almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.3.3...v1.4.0

koanf - v1.3.3

Published by knadh almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.3.2...v1.3.3

koanf - v1.3.2

Published by knadh almost 3 years ago

What's Changed

Full Changelog: https://github.com/knadh/koanf/compare/v1.3.1...v1.3.2

koanf - v1.3.0

Published by knadh about 3 years ago

Add AWS AppConfig provider.

What's Changed

New Contributors

Full Changelog: https://github.com/knadh/koanf/compare/v1.2.4...v1.3.0

koanf - v1.2.1

Published by knadh about 3 years ago

changelog for v1.2.0 -> v1.2.1

  • 29cce50 Merge pull request #101 from e-nikolov/fix-pflag-map-types
  • 0202243 posflag: add support for pflag map types
koanf - v1.2.0

Published by rhnvrm about 3 years ago

  • 5fc619c Add Delim()
  • f001ae3 Merge pull request #98 from knadh/fix-confmap-dep
  • bc5fe47 Remove superfluous dependency on providers/confmap in the core
koanf - v1.1.1

Published by knadh over 3 years ago

  • 57e89cf Merge pull request #94 from knadh/fix-posflag-callbacks
  • d3bad45 Merge pull request #91 from knadh/bug-report-template
  • b1985ad Merge pull request #93 from rhnvrm/unit-test-issue-90
  • a72baa3 Merge pull request #92 from knadh/fix-posflag-callbacks
  • adc0b54 tests: add unit test for #90
  • 9e87eba Fix unchanged default posflag value merging via incorrect callback.
  • 2f82a14 Merge pull request #87 from mvrahden/feature/filesystem
  • 6e9c0a7 Add github issue templates
  • 023ecc6 Update README with fs.FS provider
  • f7e28d0 fix call to Close on file descriptor
  • caeef66 Merge pull request #1 from rhnvrm/feature/filesystem
  • 02f42ea fix: add build constraints to maintain compat
  • 149144c add fs.FS provider
  • 139fe40 Merge pull request #85 from mvrahden/fix/base_test
  • 7cc3416 move error assertions and make them error-type dependent
  • 0a31536 fix race condition and reduce test time by half
  • af2e3f4 simplify and unify test arrangements
  • aa62c04 update testify to v1.7.0
  • 5234867 Merge pull request #84 from mr-karan/gh_actions
  • c79fbc5 feat: Replace Travis with GitHub Actions
koanf - v1.0.0

Published by rhnvrm over 3 years ago

  • deea8ad Upgrade deps
koanf - v1.1.0

Published by rhnvrm over 3 years ago

  • 036e4bf Merge pull request #79 from aeneasr/fix-memory-keyparts
  • 6692d05 Merge pull request #78 from aeneasr/fix-memory-use
  • d174d00 Reduce memory consumption for populateKeyParts
  • 1095e5e Significantly reduce memory use of maps.Flatten
  • 7d983f3 Fix Watch() doc
Package Rankings
Top 0.91% on Proxy.golang.org
Badges
Extracted from project README
Run Tests GoDoc
Related Projects