{"id":38355514,"url":"https://github.com/siberia-projects/siberia-configuration-properties","last_synced_at":"2026-01-17T03:14:52.037Z","repository":{"id":217757852,"uuid":"744626024","full_name":"siberia-projects/siberia-configuration-properties","owner":"siberia-projects","description":"Siberia-configuration-properties is a library which allows you write 1 config file which could be divided on small configs with env variables expansion","archived":false,"fork":false,"pushed_at":"2024-01-29T16:55:59.000Z","size":50,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T19:53:12.236Z","etag":null,"topics":["configuration","customizable","easy-to-use","env","expansion","framework","go","properties","siberia","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","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:23:22.000Z","updated_at":"2024-01-27T06:53:33.000Z","dependencies_parsed_at":"2024-01-29T18:50:38.704Z","dependency_job_id":null,"html_url":"https://github.com/siberia-projects/siberia-configuration-properties","commit_stats":null,"previous_names":["siberia-projects/siberia-configuration-properties"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/siberia-projects/siberia-configuration-properties","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-configuration-properties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-configuration-properties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-configuration-properties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-configuration-properties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siberia-projects","download_url":"https://codeload.github.com/siberia-projects/siberia-configuration-properties/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-configuration-properties/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":["configuration","customizable","easy-to-use","env","expansion","framework","go","properties","siberia","yaml"],"created_at":"2026-01-17T03:14:51.350Z","updated_at":"2026-01-17T03:14:52.013Z","avatar_url":"https://github.com/siberia-projects.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Siberia Configuration Properties\n=================\n\n[![Author](https://img.shields.io/badge/author-@siberia_projects-green.svg)](https://github.com/siberia-projects/siberia-configuration-properties)\n[![Source Code](https://img.shields.io/badge/source-siberia/main-blue.svg)](https://github.com/siberia-projects/siberia-configuration-properties)\n![Version](https://img.shields.io/badge/version-v1.2.0-orange.svg)\n[![Coverage Status](https://coveralls.io/repos/github/siberia-projects/siberia-configuration-properties/badge.svg?branch=main)](https://coveralls.io/github/siberia-projects/siberia-configuration-properties?branch=main)\n\n## What is it?\nSiberia-configuration-properties is a library which provides a convenient way of\nparsing a configuration file with replacing environment variables with real and separation\na parsed data by small configs\n\n## Why?\nWhen I parse a configuration file I want to see 2 things:\n - I can simply type a declaration of an environment variable in the file \nand I will be sure this variable will be parsed automatically\n - I can use only a part of a configuration\n\nWhen I dived into the internet for looking something similar, I found everything\nbut not what I wanted to see: Or it was 1 structure for all configuration, or environment\nvariables were not parsed, or I was forced to provide additional structures which were useless,\nor the stars didn't align well etc\n\nBased on the mentioned above this library has the right to life\n\n## How to download?\n\n```console\njohn@doe-pc:~$ go get github.com/siberia-projects/siberia-configuration-properties\n```\n\n## How to use?\nComparing with other libraries it may look a bit complicated, but it's not\n\nAll you need is to create a couple of tools, declare your data model and\nparse the config into the model using the tools:\n - Declare a structure in a way it implements the **Properties** interface\n(it provides a starting point where your data really begins (could be empty - which literally means\n\"all\"))\n - Read your configuration file a **ReadConfiguration(ConfigurationPath)** method\n - (Optional) Create a **SimpleSeparator**\n - Create an instance of your data model\n - Call **Configuration.WriteTo(Properties)** method or use the **Separator.Separate(Configuration, Properties)**\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\nnot:\n  my:\n    properties:\n      supportsHttps: true\n```\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/siberia-projects/siberia-configuration-properties/pkg/configuration\"\n)\n\nconst (\n\tconfigFilepath = \"path/to/config.yaml\"\n)\n\ntype CustomProperties struct {\n\tHeaders []Header\n}\n\ntype Header struct {\n\tKey   string\n\tValue string\n}\n\nfunc (properties *CustomProperties) GetPrefix() string {\n\treturn \"my.custom.properties\"\n}\n\nfunc (properties *CustomProperties) String() string {\n\treturn fmt.Sprintf(\"%#v\", properties)\n}\n\ntype NotMyProperties struct {\n\tSupportsHttps bool\n}\n\nfunc (properties *NotMyProperties) GetPrefix() string {\n\treturn \"not.my.properties\"\n}\n\nfunc (properties *NotMyProperties) String() string {\n\treturn fmt.Sprintf(\"%#v\", properties)\n}\n\nfunc main() {\n\tconfigurationInstance, err := configuration.ReadConfiguration(configFilepath)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\n\tcustomProperties := \u0026CustomProperties{}\n\tnotMyProperties := \u0026NotMyProperties{}\n\n\terr = configurationInstance.WriteTo(customProperties)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\n\terr = configurationInstance.WriteTo(notMyProperties)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\n\tcustomPropertiesString := customProperties.String()\n\tnotMyPropertiesString := notMyProperties.String()\n\n\tprintln(customPropertiesString)\n\tprintln(notMyPropertiesString)\n}\n```\n\n```text\nResult:\n\n\u0026main.CustomProperties{Headers:[]main.Header{main.Header{Key:\"Cache-Control\", Value:\"no-cache\"}, main.Header{Key:\"Content-Type\", Value:\"application/json\"}}}\n\u0026main.NotMyProperties{SupportsHttps:false}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberia-projects%2Fsiberia-configuration-properties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiberia-projects%2Fsiberia-configuration-properties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberia-projects%2Fsiberia-configuration-properties/lists"}