dghubble/sling
A Go HTTP client library for creating and sending API requests observed · 2026-08-28
Health v2 · maintenance only
55/100
- Activity 71
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4171
- days_rel: n/a
- days_push: 178
- n_releases_24m: 0
Adoption not part of the score
1720 stars · 121 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Sling is a Go HTTP client library for creating and sending API requests. It stores request properties (method, path, headers, query params, body) to simplify building API clients and decoding JSON success/failure responses.
Use cases
- build a Go client for a REST API
- send HTTP requests with struct-encoded query parameters
- decode JSON API responses into structs
- compose reusable request builders with base URLs and paths
- handle JSON error responses from APIs
When to choose
- you're writing a Go client wrapper for an HTTP/REST API
- you want a lightweight layer over net/http with struct-based query and body encoding
- you need composable request builders with shared base URLs and headers
When to avoid
- you need a full-featured HTTP client with retries, circuit breaking, or service discovery
- you're not working in Go
- you need GraphQL or gRPC client support rather than REST
Facets
library · maturity stable
http-client serialization middleware web-development apis developer-tools go cross-platform rest-client api-client request-builder http
1 source
- readme: https://github.com/dghubble/sling · fetched 2026-08-28 · 95666fb2b2fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dghubble/sling | main | 55 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem