google/go-querystring
go-querystring is Go library for encoding structs into URL query strings. observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 98
- Release rhythm 31
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4740
- days_rel: 246
- days_push: 13
- n_releases_24m: 1
Adoption not part of the score
2147 stars · 187 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
go-querystring is a small Go library that encodes structs into URL query parameters via struct tags. It exposes a single Values() function and is widely used, notably by go-github.
Use cases
- build url query strings from a struct in go
- type-safe query parameters for api requests
- encode struct fields with url tags
- construct paginated api request urls
- convert go struct to url.values
When to choose
- you need to encode structs into query strings in Go with type safety
- you want a tiny, stable, widely-adopted library
- you already use struct tags like encoding/json and want similar ergonomics
When to avoid
- you need to decode query strings back into structs
- you need complex nested or custom serialization beyond query parameters
Facets
library · maturity stable
serialization http-client web-development developer-tools go query-string struct-tags url-encoding
4 sources
- readme: https://github.com/google/go-querystring · fetched 2026-08-28 · d9f4b6f4dad7
- homepage: https://pkg.go.dev/github.com/google/go-querystring/query · fetched 2026-08-29 · cf51fe93852e
- site_page: https://pkg.go.dev/about · fetched 2026-08-29 · 757852027879
- site_page: https://go.dev/project · fetched 2026-08-29 · d5ca00bb378b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/go-querystring | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="google/go-querystring")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem