TopGit tracks typesense/typesense-go on GitHub. The project has 317 stars. Go client for Typesense: https://github.com/typesense/typesense
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
In v2.0.0+, the client allows you to define a document struct to be used type for some of the document operations.
To do that, you've to use typesense.GenericCollection:
type companyDocument struct {
ID string `json:"id"`
CompanyName string `json:"company_name"`
NumEmployees int `json:"num_employees"`
Country string `json:"country"`
}
// doc is a typed document
doc, err := typesense.GenericCollection[*companyDocument](typesenseClient, collectionName).Document("123").Retrieve(context.Background())
Index a document
document := struct {
ID string `json:"id"`
CompanyName string `json:"company_name"`
NumEmployees int `json:"num_employees"`
Country string `json:"country"`
}{
ID: "123",
CompanyName: "Stark Industries",
NumEmployees: 5215,
Country: "USA",
}
client.Collection("companies").Documents().Create(context.Background(), document)
Upserting a document
newDocument := struct {
ID string `json:"id"`
CompanyName string `json:"company_name"`
NumEmployees int `json:"num_employees"`
Country string `json:"country"`
}{
ID: "123",
CompanyName: "Stark Industries",
NumEmployees: 5215,
Country: "USA",
}
client.Collection("companies").Documents().Upsert(context.Background(), newDocument)
Bug reports and pull requests are welcome on GitHub at https://github.com/typesense/typesense-go.
Development Workflow Setup
Install dependencies,
go mod download
Update the generated files,
go generate ./...
Run all tests
# In Windows Powershell
# $env:TYPESENSE_API_KEY="xyz"
# $env:TYPESENSE_URL="http://localhost:8108"
export TYPESENSE_URL="http://localhost:8108"
export TYPESENSE_API_KEY="xyz"
go test ./... -tags=integration -v
License
typesense-go is distributed under the Apache 2 license.
Does typesense/typesense-go have a project website?
No homepage URL was recorded for typesense/typesense-go in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is typesense/typesense-go open source?
Yes — typesense/typesense-go ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/typesense/typesense-go.
What is typesense/typesense-go?
typesense/typesense-go (typesense/typesense-go) is a Go project on GitHub. From the project's own README: Go client for Typesense: https://github.com/typesense/typesense
What license does typesense/typesense-go use?
typesense/typesense-go is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about typesense/typesense-go?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/typesense/typesense-go is the definitive source.
Read full README in the tab above.
Still deciding about typesense-go?
One click hands the question to an AI along with this page — see what it says about typesense-go.