{"id":38355536,"url":"https://github.com/siberia-projects/siberia-env","last_synced_at":"2026-01-17T03:14:52.704Z","repository":{"id":217708915,"uuid":"744618101","full_name":"siberia-projects/siberia-env","owner":"siberia-projects","description":"Siberia-env is a library written on clear go for working with environment variables","archived":false,"fork":false,"pushed_at":"2024-01-29T16:51:05.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T20:07:25.144Z","etag":null,"topics":["easy-to-use","env","expansion","framework","go","siberia"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siberia-projects.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-01-17T17:04:41.000Z","updated_at":"2024-01-21T16:39:45.000Z","dependencies_parsed_at":"2024-06-21T19:28:05.765Z","dependency_job_id":null,"html_url":"https://github.com/siberia-projects/siberia-env","commit_stats":null,"previous_names":["siberia-projects/siberia-env"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/siberia-projects/siberia-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siberia-projects","download_url":"https://codeload.github.com/siberia-projects/siberia-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"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":["easy-to-use","env","expansion","framework","go","siberia"],"created_at":"2026-01-17T03:14:52.171Z","updated_at":"2026-01-17T03:14:52.681Z","avatar_url":"https://github.com/siberia-projects.png","language":null,"readme":"Siberia Env\n=================\n\n[![Author](https://img.shields.io/badge/author-@siberia_projects-green.svg)](https://github.com/siberia-projects)\n[![Source Code](https://img.shields.io/badge/source-siberia/main-blue.svg)](https://github.com/siberia-projects/siberia-env)\n![Version](https://img.shields.io/badge/version-v1.1.0-orange.svg)\n[![Coverage Status](https://coveralls.io/repos/github/siberia-projects/siberia-env/badge.svg?branch=main)](https://coveralls.io/github/siberia-projects/siberia-env?branch=main)\n\n## What is it?\nSiberia-env is a library written on clear go for working with environment variables\n\nFor now the library provides a method to expand all labeled (${ENV_VARIABLE_NAME})\nenvironment variables in a content to their real values\n\n## How to download?\n\n```console\njohn@doe-pc:~$ go get github.com/siberia-projects/siberia-env\n```\n\n## How to use?\n - Label places you want to expand in your content with \"${}\" symbols sequence\n - Provide a name of a variable a value of which you want to extract\n - (Optional) Provide a default value using \":\" symbol (could be empty)\n - Call the \"env.ExpandEnvIn\" method with the content\n\n## Examples\n```yaml\nmy:\n  custom:\n    properties:\n      headers:\n        - key: Cache-Control\n          value: ${CACHE_CONTROL:no-cache}\n        - key: Content-Type\n          value: application/json\n```\n\n```go\n    package main\n\n    import (\n\t\t\"github.com/siberia-projects/siberia-env/pkg/env\"\n\t\t\"io\"\n\t\t\"os\"\n    )\n\n    func main() {\n\t\tfile, _ := os.Open(\"path_to_the_yaml_file_above.yaml\")\n\t\tdefer file.Close()\n\n\t\tfileContent, _ := io.ReadAll(file)\n\n\t\texpandedFileContent, _ := env.ExpandEnvIn(fileContent)\n\t\texpandedFileContentString := string(expandedFileContent)\n\t\t\n\t\tprintln(expandedFileContentString)\n    }\n```\n\n```console\nmy:\n  custom:\n    properties:\n      headers:\n        - key: Cache-Control\n          value: no-cache\n        - key: Content-Type\n          value: application/json\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberia-projects%2Fsiberia-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiberia-projects%2Fsiberia-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberia-projects%2Fsiberia-env/lists"}