{"id":25363753,"url":"https://github.com/lnus/golaget","last_synced_at":"2025-06-22T12:08:20.416Z","repository":{"id":96144062,"uuid":"367424949","full_name":"lnus/golaget","owner":"lnus","description":"(Golang) Go wrapper for Systembolagets (new) API","archived":false,"fork":false,"pushed_at":"2021-05-14T18:05:46.000Z","size":3435,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T12:08:15.051Z","etag":null,"topics":[],"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/lnus.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":"2021-05-14T16:45:53.000Z","updated_at":"2021-05-14T17:59:23.000Z","dependencies_parsed_at":"2023-04-04T15:31:23.783Z","dependency_job_id":null,"html_url":"https://github.com/lnus/golaget","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lnus/golaget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Fgolaget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Fgolaget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Fgolaget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Fgolaget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnus","download_url":"https://codeload.github.com/lnus/golaget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnus%2Fgolaget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261289418,"owners_count":23136070,"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":"2025-02-14T22:38:09.752Z","updated_at":"2025-06-22T12:08:15.406Z","avatar_url":"https://github.com/lnus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoLaget 🍺\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/lnus/golaget)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/lnus/golaget)\n![GitHub](https://img.shields.io/github/license/lnus/golaget)\n[![Go Report Card](https://goreportcard.com/badge/github.com/lnus/golaget)](https://goreportcard.com/report/github.com/lnus/golaget)\n![GitHub issues](https://img.shields.io/github/issues/lnus/golaget)\n\nGoLaget is a wrapper for [Systembolagets V2 API](https://api-portal.systembolaget.se/). It currently includes every function listed under V2 on their open API. **No plans to include V1 right now**, since I don't personally need it. But feel free to PR in case you write it out. ​\n\n## Installation\n\n```bash\ngo get github.com/lnus/golaget\n```\nFor running the tests, the .env file should be populated with\n```bash\nPRIMARY_KEY=YOUR_PRIMARY_KEY\n```\nPlease refer to the .env.example file for a safe configuration.\n## Usage\n\n```golang\nimport \"github.com/lnus/golaget\"\n\nfunc main() {\n    instance = golaget.New(API_KEY, false) // API_KEY \u0026 verbose mode\n    result, error := instance.GetAgents() // Returns a list of all agents\n    for k, v := range *result {\n        fmt.Println(v.AgentID, v.IsOpen, v.Phone, v.Address)\n    }\n}\n```\n## Contributing ❤\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License ⚖\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnus%2Fgolaget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnus%2Fgolaget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnus%2Fgolaget/lists"}