Tools/dghubble/sling

sling

No description available.

1.7kemergingGoMITtrending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Mar 2026

Go's net/http makes you assemble every HTTP request by hand. Sling is a small library that makes building and sending those requests less tedious. Instead of manually constructing http.Request objects, setting headers, encoding query parameters, and parsing responses, Sling gives you a chainable builder pattern. A Go equivalent of Python's requests library, but lighter.

MIT license, Go. The API is clean: sling.New.Base(url).Get(path).QueryStruct(params).ReceiveSuccess(response). Supports JSON encoding/decoding, form data, custom headers, and base URL composition. No external dependencies beyond the standard library.

Fully free. It's a library. Install it with go get, use it in your code. No service, no hosting, nothing to pay for.

The catch: this is a mature-but-quiet project. The Go standard library's net/http is already good. Sling saves typing but doesn't add capabilities. If your team has strong opinions about minimizing dependencies, the standard library does everything Sling does with more code. And for complex API clients, you might want a full SDK generator like OpenAPI instead of a request builder.

Free vs Self-Hosted vs Paid

fully free

Fully open source under MIT. It's a Go library. No service, no hosting, no paid tier possible. Install via go get and use in your code.

Free. It's a library, not a service.

What to do by team size

Solo
free — nice convenience for Go HTTP clients
Small team
free — reduces boilerplate
Medium team
free — evaluate against generated SDK clients
Large team
free — may prefer OpenAPI codegen for standardization
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
68/100 · B
Adoption13/30
Maintenance21/25
Community9/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Growing adoption: 1,720 starsPermissive license (MIT)

About

Owner
dghubble (Organization)
Stars
1,720
Forks
121

Explore Further

More tools in the directory