github.com/go-playground/lars

lars

Package lars - Library Access/Retrieval System, is a fast radix-tree based, zero allocation, HTTP router for Go.

67

Decision Signals

Health score 67/100, confidence 100/100.

Review
Maintenance 8
Adoption 93
Security 92
Maturity 90
Developer DX 91
Confidence 100

Install

go get github.com/go-playground/lars

Package Data

updated Jun 11, 2026
Latest versionv4.0.1+incompatible
Imported by66 packages
Stars384
Forks23
Last activity7 years ago
Latest releasev4.0.1 (8 years ago)
LicenseMIT
Known vuln records0

API Surface

188 symbols
SymbolKindSynopsis
Context Type type Context interface{ ... }
Context.AcceptedLanguages Method AcceptedLanguages func(lowercase bool) []string
Context.Attachment Method Attachment func(r io.Reader, filename string) (err error)
Context.BaseContext Method BaseContext func() *Ctx
Context.ClientIP Method ClientIP func() (clientIP string)
Context.Context Method Context func() context.Context
Context.Decode Method Decode func(includeFormQueryParams bool, maxMemory int64, v interface{}) (err error)
Context.Get Method Get func(key interface{}) (value interface{}, exists bool)
Context.HandlerName Method HandlerName func() string
Context.Inline Method Inline func(r io.Reader, filename string) (err error)
Context.JSON Method JSON func(int, interface{}) error
Context.JSONBytes Method JSONBytes func(int, []byte) error

Maintained Alternatives

limited recent repository activity

#1 jwtauth

JWT authentication middleware for Go HTTP services

Go HTTP Routers 641 stars 697 imported-by 95% confidence
95

#2 Chi

Package chi is a small, idiomatic and composable router for building HTTP services.

Go HTTP Routers 22.3K stars 0 imported-by 45% confidence
88

#3 Gorilla Mux

Package mux implements a request router and dispatcher.

Go HTTP Routers 21.8K stars 99.5K imported-by 100% confidence
80

#4 httprouter

Package httprouter is a trie based high performance HTTP request router.

Go HTTP Routers 17.1K stars 27.4K imported-by 100% confidence
80

#5 bunrouter

Golang HTTP router

Go HTTP Routers 780 stars 141 imported-by 60% confidence
75

#6 ngamux

Package ngamux is simple HTTP router for Go that compatible with net/http, the standard library to serve HTTP.

Go HTTP Routers 0 stars 31 imported-by 80% confidence
67

Similar Packages

Go HTTP Routers

#1 jwtauth

JWT authentication middleware for Go HTTP services

Go HTTP Routers 641 stars 697 imported-by 95% confidence
95

#2 Chi

Package chi is a small, idiomatic and composable router for building HTTP services.

Go HTTP Routers 22.3K stars 0 imported-by 45% confidence
88

#3 Gorilla Mux

Package mux implements a request router and dispatcher.

Go HTTP Routers 21.8K stars 99.5K imported-by 100% confidence
80

#4 httprouter

Package httprouter is a trie based high performance HTTP request router.

Go HTTP Routers 17.1K stars 27.4K imported-by 100% confidence
80

#5 bunrouter

Golang HTTP router

Go HTTP Routers 780 stars 141 imported-by 60% confidence
75