Express-style HTTP
Routes, middleware, CORS, Helmet-style security, sessions, multipart uploads, SSE, rate limits, and WebSocket upgrades — with familiar handler signatures.
A premium toolkit for JavaScript developers — Express-style HTTP, lodash collections, Zod validation, Knex queries, and 38 independent packages. Idiomatic Go underneath.
Every API reference includes a three-way comparison. Here is a taste:
const adults = users
.filter(u => u.age >= 18)
.map(u => ({ ...u, label: u.age >= 21 ? 'legal' : 'minor' }));var adults []User
for _, u := range users {
if u.Age < 18 {
continue
}
label := "minor"
if u.Age >= 21 {
label = "legal"
}
adults = append(adults, User{ /* copy fields */, Label: label })
}import (
"github.com/sahilkhaire/gox/cond"
"github.com/sahilkhaire/gox/slice"
)
adults := slice.Map(
slice.Filter(users, func(u User) bool { return u.Age >= 18 }),
func(u User) User {
u.Label = cond.If(u.Age >= 21, "legal", "minor")
return u
},
)go get github.com/sahilkhaire/goxNew from Node.js?
Start with the Getting Started guide, then jump to the package you used most in npm — http, client, or slice.