{"id":30048273,"url":"https://github.com/segmentio/analytics-go","last_synced_at":"2025-08-07T10:08:18.322Z","repository":{"id":16341446,"uuid":"19091205","full_name":"segmentio/analytics-go","owner":"segmentio","description":"Segment analytics client for Go","archived":false,"fork":false,"pushed_at":"2024-10-30T20:18:19.000Z","size":232,"stargazers_count":145,"open_issues_count":23,"forks_count":93,"subscribers_count":42,"default_branch":"v3.0","last_synced_at":"2025-08-06T18:47:30.606Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://segment.com/docs/libraries/go/","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/segmentio.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":"License.md","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":"2014-04-24T01:15:51.000Z","updated_at":"2025-04-28T18:05:40.000Z","dependencies_parsed_at":"2023-01-16T20:45:28.574Z","dependency_job_id":"5824e9f4-35c7-4890-8e2a-5bf20b81b511","html_url":"https://github.com/segmentio/analytics-go","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/segmentio/analytics-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fanalytics-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fanalytics-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fanalytics-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fanalytics-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentio","download_url":"https://codeload.github.com/segmentio/analytics-go/tar.gz/refs/heads/v3.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fanalytics-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269236772,"owners_count":24383239,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-07T10:08:17.514Z","updated_at":"2025-08-07T10:08:18.295Z","avatar_url":"https://github.com/segmentio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# analytics-go [![Circle CI](https://circleci.com/gh/segmentio/analytics-go/tree/v3.0.svg?style=shield)](https://circleci.com/gh/segmentio/analytics-go/tree/v3.0) [![go-doc](https://godoc.org/github.com/segmentio/analytics-go?status.svg)](https://godoc.org/github.com/segmentio/analytics-go)\n\nSegment analytics client for Go.\n\n### ⚠️ Maintenance ⚠️\nThis library is in maintenance mode. It will send data as intended, but receive no new feature support and only critical maintenance updates from Segment.\n\n## Installation\n\nThe package can be simply installed via go get, we recommend that you use a\npackage version management system like the Go vendor directory or a tool like\nGodep to avoid issues related to API breaking changes introduced between major\nversions of the library.\n\nTo install it in the GOPATH:\n```\ngo get https://github.com/segmentio/analytics-go\n```\n\n## Documentation\n\nThe links bellow should provide all the documentation needed to make the best\nuse of the library and the Segment API:\n\n- [Documentation](https://segment.com/docs/libraries/go/)\n- [godoc](https://godoc.org/gopkg.in/segmentio/analytics-go.v3)\n- [API](https://segment.com/docs/libraries/http/)\n- [Specs](https://segment.com/docs/spec/)\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"os\"\n\n    \"github.com/segmentio/analytics-go\"\n)\n\nfunc main() {\n    // Instantiates a client to use send messages to the segment API.\n    client := analytics.New(os.Getenv(\"SEGMENT_WRITE_KEY\"))\n\n    // Enqueues a track event that will be sent asynchronously.\n    client.Enqueue(analytics.Track{\n        UserId: \"test-user\",\n        Event:  \"test-snippet\",\n    })\n\n    // Flushes any queued messages and closes the client.\n    client.Close()\n}\n```\n\n## License\n\nThe library is released under the [MIT license](License.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fanalytics-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegmentio%2Fanalytics-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fanalytics-go/lists"}