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
- Revelant topics? true
- External users? true
- Open source license? true
- Active? true
- Fork? false
Repository metadata
Simple, useful and opinionated config loader.
- Host: GitHub
- URL: https://github.com/cristalhq/aconfig
- Owner: cristalhq
- License: mit
- Created: 2020-06-26T19:43:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T10:29:05.000Z (about 1 year ago)
- Last Synced: 2024-06-03T22:29:46.146Z (11 months ago)
- Topics: command-line, config, configuration, configuration-files, dependency-free, environment, environment-variables, go, golang, json, toml, yaml
- Language: Go
- Homepage:
- Size: 256 KB
- Stars: 521
- Watchers: 8
- Forks: 31
- Open Issues: 13
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Owner metadata
- Name: cristalhq
- Login: cristalhq
- Email:
- Kind: organization
- Description: Better open source
- Website: https://cristalhq.dev
- Location: Earth
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/44873319?v=4
- Repositories: 44
- Last ynced at: 2023-03-02T22:32:06.618Z
- Profile URL: https://github.com/cristalhq
GitHub Events
Total
- Create event: 167
- Commit comment event: 8
- Release event: 54
- Delete event: 98
- Member event: 2
- Pull request event: 229
- Fork event: 47
- Issues event: 52
- Watch event: 513
- Issue comment event: 194
- Push event: 218
- Public event: 1
- Pull request review comment event: 12
- Pull request review event: 45
Last Year
- Create event: 8
- Delete event: 7
- Fork event: 4
- Issue comment event: 7
- Issues event: 5
- Member event: 1
- Pull request event: 14
- Pull request review comment event: 2
- Pull request review event: 6
- Push event: 12
- Release event: 2
- Watch event: 85
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 | 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:
- foxmail.com: 1
- olegk.dev: 1
- dkrv.me: 1
- junk1tm.me: 1
- hey.com: 1
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
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
- Total packages: 5
- Total downloads: unknown
- Total docker downloads: 506
- Total dependent packages: 156 (may contain duplicates)
- Total dependent repositories: 73 (may contain duplicates)
- Total versions: 85
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
- github.com/cristalhq/aconfig v0.17.0
- github.com/joho/godotenv v1.4.0
- github.com/cristalhq/aconfig v0.17.0
- github.com/joho/godotenv v1.4.0
- github.com/cristalhq/aconfig v0.17.0
- github.com/hashicorp/hcl v1.0.0
- 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
- github.com/BurntSushi/toml v1.1.0
- github.com/cristalhq/aconfig v0.17.0
- github.com/BurntSushi/toml v1.1.0
- github.com/cristalhq/aconfig v0.17.0
- github.com/cristalhq/aconfig v0.17.0
- gopkg.in/yaml.v3 v3.0.1
- github.com/cristalhq/aconfig v0.17.0
- gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
- gopkg.in/yaml.v3 v3.0.1
Score: 15.781463641574119