{"id":13895117,"url":"https://github.com/sourcegraph/go-sourcegraph","last_synced_at":"2025-07-17T10:32:33.949Z","repository":{"id":18788494,"uuid":"22002113","full_name":"sourcegraph/go-sourcegraph","owner":"sourcegraph","description":null,"archived":true,"fork":false,"pushed_at":"2015-11-20T01:26:48.000Z","size":1567,"stargazers_count":42,"open_issues_count":2,"forks_count":9,"subscribers_count":88,"default_branch":"master","last_synced_at":"2024-08-07T18:32:40.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sourcegraph.com/github.com/sourcegraph/go-sourcegraph","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/sourcegraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-19T04:43:05.000Z","updated_at":"2024-05-23T13:43:03.000Z","dependencies_parsed_at":"2022-08-28T05:40:42.168Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/go-sourcegraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-sourcegraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-sourcegraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-sourcegraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fgo-sourcegraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/go-sourcegraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226255334,"owners_count":17595859,"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":"2024-08-06T18:02:00.709Z","updated_at":"2024-11-25T00:30:53.605Z","avatar_url":"https://github.com/sourcegraph.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-sourcegraph (deprecated)\n\n[Sourcegraph](https://sourcegraph.com) API client library for [Go](http://golang.org).\n\n**Work in progress. If you want to use this, [post an issue](https://github.com/sourcegraph/go-sourcegraph/issues) or contact us [@srcgraph](https://twitter.com/srcgraph).**\n\n## Development\n\n### Protocol buffers\n\nThis repository uses the `sourcegraph/sourcegraph.proto` [protocol buffers](https://developers.google.com/protocol-buffers/) definition file to generate Go structs as well as [gRPC](http://grpc.io) clients and servers for various service interfaces.\n\n### First-time installation of protobuf and other codegen tools\n\nYou need to install and run the protobuf compiler before you can regenerate Go code after you change the `sourcegraph.proto` file.\n\nIf you run into errors while compiling protobufs, try again with these versions that are known to work:\n\n-  `protoc` - version `github.com/google/protobuf@v3.0.0-beta-1`.\n-  `protoc-gen-gogo` - commit `github.com/gogo/protobuf@200875106f3bf0eb01eb297dae30b250a25ffc84`.\n-  `grpc-go` - commit `google.golang.org/grpc@f7d1653e300d6ad9f019bce7a5f5ab3b4821f637`.\n\n1. **Install protoc**, the protobuf compiler. Find more details in the [protobuf README](https://github.com/google/protobuf/tree/v3.0.0-beta-1#c-installation---unix).\n\n   Make sure the `protoc` binary is in your `$PATH`.\n\n2. **Install [gogo/protobuf](https://github.com/gogo/protobuf)**.\n\n   ```\n   go get -u github.com/gogo/protobuf/...\n   ```\n\n3. **Install [grpc](https://github.com/grpc/grpc-go)**:\n\n   ```\n   go get google.golang.org/grpc\n   ```\n\n4. **Install [gen-mocks](https://sourcegraph.com/sourcegraph/gen-mocks)** by running:\n\n   ```\n   go get -u sourcegraph.com/sourcegraph/gen-mocks\n   ```\n\n5. **Install `gopathexec`**:\n\n   ```\n   go get -u sourcegraph.com/sourcegraph/gopathexec\n   ```\n\n6. **Install `grpccache-gen`**:\n\n   ```\n   go get -u sourcegraph.com/sourcegraph/grpccache/grpccache-gen\n   ```\n\n### Regenerating Go code after changing `sourcegraph.proto`\n\n1. In `go-sourcegraph` (this repository), run:\n\n   ```\n   go generate ./...\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fgo-sourcegraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2Fgo-sourcegraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fgo-sourcegraph/lists"}