{"id":3560648,"name":"github.com/datatogether/config","ecosystem":"go","description":"config is hassle-free config struct setting. setting things like configStruct.StringField to\nthe value of the enviornment variable STRING_FIELD.\nIt wraps the lovely godotenv package, which itself is a go port of the ruby dotenv gem.\n\nBasic use has three steps:\n\nconfig will read that env file, setting environment variables for the running process\nand infer any ENVIRIONMENT_VARIABLE value to it's cfg.EnvironmentVariable counterpart/\n\nconfig uses a CamelCase -\u003e CAMEL_CASE convention to map values. So a struct field\ncfg.FieldName will map to an environment variable FIELD_NAME.\nTypes are inferred, with errors returned for invalid env var settings.\n\nusing an env file is optional, calling Load(cfg) is perfectly valid.\n\nconfig uses the reflect package to infer \u0026 set values\nreflect is a good choice here because setting config happens seldom in the course\nof a running program, and these days if you're parsing JSON, the reflect package is already\nincluded in your binary","homepage":"https://github.com/datatogether/config","licenses":"AGPL-3.0","normalized_licenses":["AGPL-3.0"],"repository_url":"https://github.com/datatogether/config","keywords_array":[],"namespace":"github.com/datatogether","versions_count":1,"first_release_published_at":"2017-10-26T19:51:36.000Z","latest_release_published_at":"2017-10-26T19:51:36.000Z","latest_release_number":"v0.0.0-20171026195136-ce668ee661fa","last_synced_at":"2026-03-16T17:20:00.961Z","created_at":"2022-04-11T01:59:21.730Z","updated_at":"2026-03-16T17:20:00.961Z","registry_url":"https://pkg.go.dev/github.com/datatogether/config","install_command":"go get github.com/datatogether/config","documentation_url":"https://pkg.go.dev/github.com/datatogether/config#section-documentation","metadata":{},"repo_metadata":{"uuid":"92434364","full_name":"datatogether/config","owner":"datatogether","description":"Hassle-free config struct setting from env variables in go","archived":true,"fork":false,"pushed_at":"2017-10-26T19:51:40.000Z","size":23,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-03-01T20:15:34.272Z","etag":null,"topics":["cfg","environment-variables","golang","package"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"metadata":{},"created_at":"2017-05-25T18:51:45.000Z","updated_at":"2023-01-28T16:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/datatogether/config","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatogether%2Fconfig","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatogether%2Fconfig/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatogether%2Fconfig/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datatogether","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"}},"repo_metadata_updated_at":"2023-03-21T18:46:01.467Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":2,"rankings":{"downloads":null,"dependent_repos_count":3.5241582458386294,"dependent_packages_count":9.547515109963728,"stargazers_count":19.178050331827645,"forks_count":18.740804334438582,"docker_downloads_count":null,"average":12.747632005517147},"purl":"pkg:golang/github.com/datatogether/config","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/datatogether/config","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/datatogether/config","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/datatogether/config/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-08-11T23:23:10.417Z","issues_count":4,"pull_requests_count":1,"avg_time_to_close_issue":66108.0,"avg_time_to_close_pull_request":10896.0,"issues_closed_count":1,"pull_requests_closed_count":1,"pull_request_authors_count":1,"issue_authors_count":4,"avg_comments_per_issue":0.25,"avg_comments_per_pull_request":1.0,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fdatatogether%2Fconfig/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fdatatogether%2Fconfig/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fdatatogether%2Fconfig/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fdatatogether%2Fconfig/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fdatatogether%2Fconfig/codemeta","maintainers":[]}