Popularity
2.4
Growing
Activity
2.8
-
32
1
5
Programming language: Go
License: MIT License
Tags:
Web Frameworks
Latest version: v0.13.0
goweb alternatives and similar packages
Based on the "Web Frameworks" category.
Alternatively, view goweb alternatives based on common mentions on social networks and blogs.
-
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin. -
Gorilla WebSocket
A fast, well-tested and widely used WebSocket implementation for Go. -
Iris
The fastest HTTP/2 Go Web Framework. A true successor of expressjs and laravel. Supports AWS Lambda, gRPC, MVC, Unique Router, Websockets, Sessions, Test suite, Dependency Injection and more. Thank you / 谢谢 https://github.com/kataras/iris/issues/1329 -
go-kratos
Your ultimate Go microservices framework for the cloud-native era. -
go-socket.io
socket.io library for golang, a realtime application framework. -
Macaron
Package macaron is a high productive and modular web framework in Go. -
Faygo
Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes. Just define a struct handler, faygo will automatically bind/verify the request parameters and generate the online API doc. -
render
Go package for easily rendering JSON, XML, binary data, and HTML templates responses. -
pat
Sinatra style pattern muxer for Go’s net/http library, by the author of Sinatra. -
tigertonic
A Go framework for building JSON web services inspired by Dropwizard -
Goji
Goji is a minimalistic and flexible HTTP request multiplexer for Go (golang) -
fasthttprouter
A high performance fasthttp request router that scales well -
go-server-timing
Go (golang) library for creating and consuming HTTP Server-Timing headers -
Gearbox
Gearbox :gear: is a web framework written in Go with a focus on high performance -
Beego
beego is an open-source, high-performance web framework for the Go programming language. -
xujiajun/gorouter
xujiajun/gorouter is a simple and fast HTTP router for Go. It is easy to build RESTful APIs and your web framework. -
golongpoll
golang long polling library. Makes web pub-sub easy via HTTP long-poll servers and clients :smiley: :coffee: :computer: -
traffic
Sinatra inspired regexp/pattern mux and web framework for Go [NOT MAINTAINED] -
ozzo-routing
An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Promo
scoutapm.com
Do you think we are missing an alternative of goweb or a related project?
Popular Comparisons
README
Goweb
Light weight web framework based on net/http.
Includes
- routing
- middleware
- logging
Goweb aims to
- rely only on the standard library as much as possible
- be flexible
- perform well
Usage
See examples.
Basic usage
package main
import (
"github.com/twharmon/goweb"
)
func main() {
app := goweb.New()
app.GET("/hello/{name}", hello)
app.Run(":8080")
}
func hello(c *goweb.Context) goweb.Responder {
return c.JSON(goweb.Map{
"hello": c.Param("name"),
})
}
Easily extendable
See serving files, template rendering, and tls for examples.
Documentation
For full documentation see pkg.go.dev.
Benchmarks
BenchmarkGinPlaintext 780 ns/op 1040 B/op 9 allocs/op
BenchmarkEchoPlaintext 817 ns/op 1024 B/op 10 allocs/op
BenchmarkGowebPlaintext 1241 ns/op 1456 B/op 16 allocs/op
BenchmarkGorillaPlaintext 1916 ns/op 2032 B/op 19 allocs/op
BenchmarkMartiniPlaintext 14448 ns/op 1779 B/op 36 allocs/op
BenchmarkGowebJSON 60042 ns/op 50798 B/op 15 allocs/op
BenchmarkGorillaJSON 61086 ns/op 51330 B/op 18 allocs/op
BenchmarkEchoJSON 61115 ns/op 50280 B/op 10 allocs/op
BenchmarkGinJSON 68322 ns/op 100116 B/op 10 allocs/op
BenchmarkMartiniJSON 96365 ns/op 144335 B/op 38 allocs/op
BenchmarkGinPathParams 2464 ns/op 1952 B/op 27 allocs/op
BenchmarkEchoPathParams 2600 ns/op 1968 B/op 27 allocs/op
BenchmarkGowebPathParams 3591 ns/op 2673 B/op 35 allocs/op
BenchmarkGorillaPathParams 4220 ns/op 3265 B/op 36 allocs/op
BenchmarkMartiniPathParams 15211 ns/op 2657 B/op 45 allocs/op
Contribute
Create a pull request to contribute to Goweb.