{"id":36799837,"url":"https://github.com/kamalshkeir/kenv","last_synced_at":"2026-01-12T13:33:08.519Z","repository":{"id":64692360,"uuid":"567787600","full_name":"kamalshkeir/kenv","owner":"kamalshkeir","description":"A minimalistic golang pkg to load environment variables to strct","archived":false,"fork":false,"pushed_at":"2023-08-03T15:50:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T17:35:41.362Z","etag":null,"topics":["environment","environment-variables","envloader","golang","load","minimalistic"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamalshkeir.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-18T15:22:07.000Z","updated_at":"2022-11-18T15:24:12.000Z","dependencies_parsed_at":"2023-10-17T05:01:20.363Z","dependency_job_id":"a29b2548-cf56-47cd-98ab-9d31e5302ed2","html_url":"https://github.com/kamalshkeir/kenv","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"cee6ca1c0c4b0340ae5f1e6a2be00a5056dca5c9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kamalshkeir/kenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalshkeir%2Fkenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalshkeir%2Fkenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalshkeir%2Fkenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalshkeir%2Fkenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamalshkeir","download_url":"https://codeload.github.com/kamalshkeir/kenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalshkeir%2Fkenv/sbom","scorecard":{"id":548622,"data":{"date":"2025-08-11","repo":{"name":"github.com/kamalshkeir/kenv","commit":"cee6ca1c0c4b0340ae5f1e6a2be00a5056dca5c9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":6,"reason":"Found 2/3 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T10:11:18.038Z","repository_id":64692360,"created_at":"2025-08-20T10:11:18.038Z","updated_at":"2025-08-20T10:11:18.038Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28339175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["environment","environment-variables","envloader","golang","load","minimalistic"],"created_at":"2026-01-12T13:33:08.389Z","updated_at":"2026-01-12T13:33:08.509Z","avatar_url":"https://github.com/kamalshkeir.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A minimalistic pkg to load environment variables to strct\n\n## get it :\n```sh\ngo get -u github.com/kamalshkeir/kenv@latest\n```\n## Example:\n\n##### Struct to Fill from env\n```go\ntype GlobalConfig struct {\n\tHost       string `kenv:\"HOST|localhost\"` // DEFAULT to 'localhost': if HOST not found in env\n\tPort       string `kenv:\"PORT|9313\"`\n\tEmbed struct {\n\t\tStatic    bool `kenv:\"EMBED_STATIC|false\"`\n\t\tTemplates bool `kenv:\"EMBED_TEMPLATES|false\"`\n\t}\n\tDb struct {\n\t\tName     string `kenv:\"DB_NAME|db\"`\n\t\tType     string `kenv:\"DB_TYPE\"` // REEQUIRED: this env var is required, you will have error if empty\n\t\tDSN      string `kenv:\"DB_DSN|\"` // NOT REQUIRED: if DB_DSN not found it's not required, it's ok to stay empty\n\t}\n\tSmtp struct {\n\t\tEmail string `kenv:\"SMTP_EMAIL|\"`\n\t\tPass  string `kenv:\"SMTP_PASS|\"`\n\t\tHost  string `kenv:\"SMTP_HOST|\"`\n\t\tPort  string `kenv:\"SMTP_PORT|\"`\n\t}\n\tProfiler   bool   `kenv:\"PROFILER|false\"`\n\tDocs       bool   `kenv:\"DOCS|false\"`\n\tLogs       bool   `kenv:\"LOGS|false\"`\n\tMonitoring bool   `kenv:\"MONITORING|false\"`\n}\n```\n\n##### Fill\n```go\nkenv.Load(\".env\") // load env files and add to env vars\n// the command:\nerr := kenv.Fill(\u0026Config) // fill struct with env vars loaded before\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamalshkeir%2Fkenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamalshkeir%2Fkenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamalshkeir%2Fkenv/lists"}