{"id":16949445,"url":"https://github.com/jackc/envconf","last_synced_at":"2025-03-29T09:46:04.600Z","repository":{"id":242302909,"uuid":"809209833","full_name":"jackc/envconf","owner":"jackc","description":"Envconf is a simple, zero dependency library for managing configuration from the environment.","archived":false,"fork":false,"pushed_at":"2024-06-02T12:49:11.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T02:36:02.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-02T02:59:28.000Z","updated_at":"2024-06-26T12:51:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd4aaf4b-2b29-4d90-b1ce-fc7af5e4bbac","html_url":"https://github.com/jackc/envconf","commit_stats":null,"previous_names":["jackc/envconf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fenvconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fenvconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fenvconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fenvconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackc","download_url":"https://codeload.github.com/jackc/envconf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246168087,"owners_count":20734389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:54:44.851Z","updated_at":"2025-03-29T09:46:04.578Z","avatar_url":"https://github.com/jackc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/jackc/envconf.svg)](https://pkg.go.dev/github.com/jackc/envconf)\n[![Build Status](https://github.com/jackc/envconf/actions/workflows/ci.yml/badge.svg)](https://github.com/jackc/envconf/actions/workflows/ci.yml)\n\n# Envconf\n\nEnvconf is a simple, zero dependency library for managing configuration from the environment. It adds default values,\nvariable descriptions, and the ability to inject a environment fetching function.\n\nExample usage:\n\n```go\nconfig := envconf.New()\n\n// Register configuration items.\nconfig.Register(envconf.Item{\n  Name:        \"FOO\",\n  Default:     \"default-foo\",\n  Description: \"the foo\",\n})\n\nconfig.Register(envconf.Item{\n  Name:        \"BAR\",\n  Default:     \"default-bar\",\n  Description: \"the bar\",\n})\n\nfoo := config.Value(\"FOO\") // returns ENV[\"FOO\"] or \"default-foo\"\nbar = config.Value(\"BAR\") // returns ENV[\"BAR\"] or \"default-bar\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackc%2Fenvconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackc%2Fenvconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackc%2Fenvconf/lists"}