{"id":35264939,"url":"https://github.com/realbucksavage/spring-config-client-go","last_synced_at":"2026-05-12T16:07:45.155Z","repository":{"id":42484658,"uuid":"263891583","full_name":"realbucksavage/spring-config-client-go","owner":"realbucksavage","description":"Go client that consumes configuration from a Spring cloud config server","archived":false,"fork":false,"pushed_at":"2022-04-03T17:21:00.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T14:03:51.376Z","etag":null,"topics":["cloud-native","cloud-native-go","config-client","go","golang","spring-cloud-config"],"latest_commit_sha":null,"homepage":"","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/realbucksavage.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":"2020-05-14T11:05:09.000Z","updated_at":"2023-12-27T00:05:40.000Z","dependencies_parsed_at":"2022-09-12T21:50:38.487Z","dependency_job_id":null,"html_url":"https://github.com/realbucksavage/spring-config-client-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/realbucksavage/spring-config-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realbucksavage%2Fspring-config-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realbucksavage%2Fspring-config-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realbucksavage%2Fspring-config-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realbucksavage%2Fspring-config-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realbucksavage","download_url":"https://codeload.github.com/realbucksavage/spring-config-client-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realbucksavage%2Fspring-config-client-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32946540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"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":["cloud-native","cloud-native-go","config-client","go","golang","spring-cloud-config"],"created_at":"2025-12-30T09:58:42.069Z","updated_at":"2026-05-12T16:07:45.150Z","avatar_url":"https://github.com/realbucksavage.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-config-client-go\n\nA simple package that facilitates fetching of configuration from a Spring Cloud Config Server\n\n## Installation\n\n```shell\ngo get github.com/realbucksavage/spring-config-client-go/v2\n```\n\n## Usage\n\n```go\nimport (\n    \"log\"\n    \"github.com/realbucksavage/spring-config-client-go/v2\"\n)\n\ntype applicationConfig struct {\n    Key1 Key1Type `json:\"key1\" yaml:\"key1\"`\n    // ...\n}\n\nfunc main() {\n    client, err := cloudconfig.NewClient(\n        \"config:8888\",\n        \"someapp\",\n        \"production\",\n    )\n    if err != nil {\n        panic(err)\n    }\n\n    // get a reader to configuration\n    rdr, err := client.Raw()\n\n    // or, decode configuration directly into a struct\n    var appConfig applicationConfig\n    err := client.Decode(\u0026appConfig)\n}\n```\n\nThe client can also be customized with these options\n\n### Basic Auth\n\n```go\nclient, err := cloudconfig.NewClient(\n    server, \n    application, \n    profile, \n    cloudconfig.WithBasicAuth(\"username\", \"password\"),\n)\n```\n\n### Reading config as YAML instead of (default) JSON\n\n```go\nclient, err := cloudconfig.NewClient(\n    server,\n    application,\n    profile, \n    cloudconfig.WithFormat(cloudconfig.YAMLFormat)),\n)\n```\n\n### Using HTTPs (or, setting the scheme of config server's URL)\n\n```go\nclient, err := cloudconfig.NewClient(\n    server,\n    application,\n    profile, \n    cloudconfig.WithScheme(\"https\"),\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealbucksavage%2Fspring-config-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealbucksavage%2Fspring-config-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealbucksavage%2Fspring-config-client-go/lists"}