{"id":21144509,"url":"https://github.com/zneix/yec","last_synced_at":"2025-03-14T13:41:03.277Z","repository":{"id":57624434,"uuid":"398457860","full_name":"zneix/yec","owner":"zneix","description":"Golang config library with minimal dependencies","archived":false,"fork":false,"pushed_at":"2021-08-21T14:15:46.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T01:03:14.431Z","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/zneix.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}},"created_at":"2021-08-21T03:37:57.000Z","updated_at":"2021-08-21T14:15:48.000Z","dependencies_parsed_at":"2022-08-26T22:20:18.271Z","dependency_job_id":null,"html_url":"https://github.com/zneix/yec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zneix%2Fyec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zneix%2Fyec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zneix%2Fyec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zneix%2Fyec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zneix","download_url":"https://codeload.github.com/zneix/yec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243588992,"owners_count":20315465,"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-11-20T08:19:09.941Z","updated_at":"2025-03-14T13:41:03.251Z","avatar_url":"https://github.com/zneix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yec: YAML-env-config wrapper for Golang\n\nYec is a simple library that reads data from yaml files and environment variables unmarshaling it into custom structs.\nIt aims to be as lightweight as possible, relying on minimal amount of dependencies, while providing unified functionality between configuration files and environment variables.\n\nSimple example:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/zneix/yec\"\n)\n\ntype myConfig struct {\n\tBaseURL          string `mapstructure:\"base-url\"`\n\tMaxContentLength uint64 `mapstructure:\"max-content-length\"`\n}\n\nfunc main() {\n\ty := yec.New(\"myapplication\")\n\ty.ReadConfig()\n\n\tvar cfg myConfig\n\ty.Unmarshal(\u0026cfg)\n\n\tfmt.Printf(\"%# v\\n\", cfg)\n}\n```\n\nInspired by [spf13/viper](https://github.com/spf13/viper).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzneix%2Fyec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzneix%2Fyec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzneix%2Fyec/lists"}