https://github.com/cristalhq/aconfig

Simple, useful and opinionated config loader.
https://github.com/cristalhq/aconfig

Keywords

command-line config configuration configuration-files dependency-free environment environment-variables go golang json toml yaml

Keywords from Contributors

transforms observation archiving measur generic compose conversion alerting guide optimize

Last synced: 11 months ago
JSON representation

Acceptance Criteria

Repository metadata

Simple, useful and opinionated config loader.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 11 months ago

Total Commits: 162
Total Committers: 18
Avg Commits per committer: 9.0
Development Distribution Score (DDS): 0.488

Commits in past year: 6
Committers in past year: 3
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.5

Name Email Commits
Oleg Kovalov o****g@h****m 83
Oleg Kovalov i****v@g****m 53
Yury Makarov m****l@g****m 6
dependabot[bot] 4****] 3
Tom g****b@j****e 3
Michael Currin 1****n 2
Alexander Emelin f****b@g****m 1
Denis Krivak i****x@d****e 1
Emilijus Stankus e****s@g****m 1
Jakub Dyszkiewicz j****z@g****m 1
Oleg Kovalov g****b@o****v 1
aovlllo 3****o 1
XIE Long X****n 1
Vladislav Vegner R****n 1
Eric Greene e****e 1
Asaf Alima a****a 1
Andrii Zhezhel 2****l 1
wweir w****r@f****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: over 1 year ago

Total issues: 28
Total pull requests: 79
Average time to close issues: 4 months
Average time to close pull requests: about 1 month
Total issue authors: 23
Total pull request authors: 15
Average comments per issue: 2.54
Average comments per pull request: 1.03
Merged pull request: 71
Bot issues: 0
Bot pull requests: 2

Past year issues: 3
Past year pull requests: 8
Past year average time to close issues: N/A
Past year average time to close pull requests: 13 minutes
Past year issue authors: 3
Past year pull request authors: 4
Past year average comments per issue: 2.0
Past year average comments per pull request: 0.13
Past year merged pull request: 8
Past year bot issues: 0
Past year bot pull requests: 2

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/cristalhq/aconfig

Top Issue Authors

  • cristaloleg (3)
  • ilyakaznacheev (3)
  • vfaronov (2)
  • wweir (1)
  • voxeljorge (1)
  • Tasssadar (1)
  • skovtunenko (1)
  • simongottschlag (1)
  • semihbkgr (1)
  • s3rj1k (1)
  • Rid-lin (1)
  • newink (1)
  • nevian427 (1)
  • MockyBang (1)
  • koterin (1)

Top Pull Request Authors

  • cristaloleg (55)
  • mef13 (7)
  • tmzane (3)
  • MichaelCurrin (2)
  • dependabot[bot] (2)
  • asafalima (1)
  • simongottschlag (1)
  • zhezhel (1)
  • daniil388 (1)
  • aohoy (1)
  • tetafro (1)
  • EmilijusS (1)
  • XIELongDragon (1)
  • wweir (1)
  • Rid-lin (1)

Top Issue Labels

  • feature (11)
  • bug (10)
  • documentation (3)
  • good first issue (1)
  • help wanted (1)

Top Pull Request Labels

  • dependencies (2)
  • github_actions (2)

Package metadata

proxy.golang.org: github.com/cristalhq/aconfig

Package aconfig provides simple but still powerful config loader. It can read configuration from different sources, like defaults, files, environment variables, console flag parameters. Defaults are defined in structure tags (`default` tag). For files JSON, YAML, TOML and .Env are supported. Environment variables and flag parameters can have an optional prefix to separate them from other entries. Also, aconfig is dependency-free, file decoders are used as separate modules (submodules to be exact) and are added to your go.mod only when used. Loader configuration (`Config` type) has different ways to configure loader, to skip some sources, define prefixes, fail on unknown params. Just load defaults from struct definition. Load defaults from struct definition and overwrite with a file. And then overwrite with environment variables. Load defaults from struct defunition and overwrite with a file. Load defaults from struct definition and overwrite with a file. And then overwrite with environment variables. Finally read command line flags.

  • Homepage: https://github.com/cristalhq/aconfig
  • Documentation: https://pkg.go.dev/github.com/cristalhq/aconfig#section-documentation
  • Licenses: MIT
  • Latest release: v0.18.5 (published over 1 year ago)
  • Last Synced: 2024-06-03T22:45:13.158Z (11 months ago)
  • Versions: 58
  • Dependent Packages: 86
  • Dependent Repositories: 44
  • Docker Downloads: 253
  • Rankings:
    • Dependent packages count: 0.571%
    • Dependent repos count: 0.848%
    • Docker downloads count: 1.557%
    • Average: 2.023%
    • Stargazers count: 2.794%
    • Forks count: 4.343%
proxy.golang.org: github.com/cristalhq/aconfig/aconfigdotenv

  • Homepage: https://github.com/cristalhq/aconfig
  • Documentation: https://pkg.go.dev/github.com/cristalhq/aconfig/aconfigdotenv#section-documentation
  • Licenses: MIT
  • Latest release: v0.17.1 (published almost 3 years ago)
  • Last Synced: 2024-06-03T22:45:12.116Z (11 months ago)
  • Versions: 7
  • Dependent Packages: 19
  • Dependent Repositories: 7
  • Docker Downloads: 253
  • Rankings:
    • Dependent packages count: 1.294%
    • Docker downloads count: 1.562%
    • Dependent repos count: 1.962%
    • Average: 2.372%
    • Stargazers count: 2.744%
    • Forks count: 4.298%
proxy.golang.org: github.com/cristalhq/aconfig/aconfigyaml

  • Homepage: https://github.com/cristalhq/aconfig
  • Documentation: https://pkg.go.dev/github.com/cristalhq/aconfig/aconfigyaml#section-documentation
  • Licenses: MIT
  • Latest release: v0.17.1 (published almost 3 years ago)
  • Last Synced: 2024-06-03T22:45:12.157Z (11 months ago)
  • Versions: 9
  • Dependent Packages: 34
  • Dependent Repositories: 16
  • Rankings:
    • Dependent packages count: 0.956%
    • Dependent repos count: 1.33%
    • Average: 2.373%
    • Stargazers count: 2.807%
    • Forks count: 4.401%
proxy.golang.org: github.com/cristalhq/aconfig/aconfigtoml

  • Homepage: https://github.com/cristalhq/aconfig
  • Documentation: https://pkg.go.dev/github.com/cristalhq/aconfig/aconfigtoml#section-documentation
  • Licenses: MIT
  • Latest release: v0.17.1 (published almost 3 years ago)
  • Last Synced: 2024-06-03T22:45:12.786Z (11 months ago)
  • Versions: 6
  • Dependent Packages: 12
  • Dependent Repositories: 4
  • Rankings:
    • Dependent packages count: 1.568%
    • Dependent repos count: 2.511%
    • Stargazers count: 2.807%
    • Average: 2.821%
    • Forks count: 4.401%
proxy.golang.org: github.com/cristalhq/aconfig/aconfighcl

  • Homepage: https://github.com/cristalhq/aconfig
  • Documentation: https://pkg.go.dev/github.com/cristalhq/aconfig/aconfighcl#section-documentation
  • Licenses: MIT
  • Latest release: v0.17.1 (published almost 3 years ago)
  • Last Synced: 2024-06-03T22:45:12.783Z (11 months ago)
  • Versions: 5
  • Dependent Packages: 5
  • Dependent Repositories: 2
  • Rankings:
    • Stargazers count: 2.807%
    • Dependent packages count: 3.377%
    • Dependent repos count: 3.485%
    • Average: 3.517%
    • Forks count: 4.401%

Dependencies

aconfigdotenv/go.mod go
  • github.com/cristalhq/aconfig v0.17.0
  • github.com/joho/godotenv v1.4.0
aconfigdotenv/go.sum go
  • github.com/cristalhq/aconfig v0.17.0
  • github.com/joho/godotenv v1.4.0
aconfighcl/go.mod go
  • github.com/cristalhq/aconfig v0.17.0
  • github.com/hashicorp/hcl v1.0.0
aconfighcl/go.sum go
  • github.com/cristalhq/aconfig v0.16.8
  • github.com/cristalhq/aconfig v0.17.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/hashicorp/hcl v1.0.0
aconfigtoml/go.mod go
  • github.com/BurntSushi/toml v1.1.0
  • github.com/cristalhq/aconfig v0.17.0
aconfigtoml/go.sum go
  • github.com/BurntSushi/toml v1.1.0
  • github.com/cristalhq/aconfig v0.17.0
aconfigyaml/go.mod go
  • github.com/cristalhq/aconfig v0.17.0
  • gopkg.in/yaml.v3 v3.0.1
aconfigyaml/go.sum go
  • github.com/cristalhq/aconfig v0.17.0
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/yaml.v3 v3.0.1
.github/workflows/build.yml actions
go.mod go

Score: 15.781463641574119