Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.8% on proxy.golang.org
Top 1.1% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org
Top 5.4% forks on proxy.golang.org

proxy.golang.org : github.com/JeremyLoy/config

Package config provides typesafe, cloud native configuration binding from environment variables or files to structs. Configuration can be done in as little as two lines: A field's type determines what https://pkg.go.dev/strconv function is called. All string conversion rules are as defined in the https://pkg.go.dev/strconv package. time.Duration follows the same parsing rules as https://pkg.go.dev/time#ParseDuration *net.URL follows the same parsing rules as https://pkg.go.dev/net/url#URL.Parse NOTE: `*net.URL` fields on the struct **must** be a pointer If chaining multiple data sources, data sets are merged. Later values override previous values. Unset values remain intact or as their native zero value: https://tour.golang.org/basics/12. Nested structs/subconfigs are delimited with double underscore. Env vars map to struct fields case insensitively. NOTE: Also true when using struct tags.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/%21jeremy%21loy/config
Keywords: 12-factor, cloud, configuration, environment, go, golang, minimal
License: MIT
Latest release: over 2 years ago
First release: about 5 years ago
Namespace: github.com/JeremyLoy
Dependent packages: 20
Dependent repositories: 12
Stars: 322 on GitHub
Forks: 16 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/JeremyLoy
Last synced: 1 day ago

    Loading...
    Readme
    Loading...