Tak jak NodeJS má svůj ExpressJS, nebo Hapi či Koa, tak i Golang má své webové frameworky, které vám výrazně ulehčí a zjednoduší vývoj webových aplikací.
Vybírám jen několik nejpopulárnějších, pro rozšíření obzorů, popřípadě získání motivace.
Revel
A high-productivity, flexible web framework for the Go language. Revel provides routing, parameter parsing, validation, session/flash, templating,caching, job running, a testing framework, and even internationalization.
Beego Framework
An open source framework to build and develop your applications in the Go way. Beego is a full-fledged MVC framework with its own logging library, ORM, and web frameworks.
Gin Gonic
Gin is a web framework written in Golang. It features a martini-like API with much better performance, up to 40 times faster. If you need performance and good productivity, you will love Gin.
Buffalo
A Go web development eco-system, designed to make your life easier. Buffalo helps you to generate a web project that already has everything from front-end (JavaScript, SCSS, etc.) to back-end (database, routing, etc.) already hooked up and ready to run. From there it provides easy APIs to build your web application quickly in Go.
Goji
Goji is a HTTP request multiplexer, similar to net/http.ServeMux
. It compares incoming requests to a list of registered Patterns, and dispatches to the Handler that corresponds to the first matching Pattern. Goji also supports Middleware (composable shared functionality applied to every request) and uses the standard context
to store request-scoped values.
Gocraft
gocraft/web is a Go mux and middleware package. We deal with casting and reflection so YOUR code can be statically typed. And we’re fast. Gocraft is a Go mux and middleware package that features casting and reflection capabilities so that you can type your code statically. You can also add an optional functionality with the built-in middleware or write your own.
Performance is a first class concern. For minimal ‚hello world‘ style apps, added latency is about 3μs. This grows to about 10μs for more complex apps (6 middleware functions, 3 levels of contexts, 150+ routes).M
Iris
The fastest backend web framework for Go.
Iris is a fast, simple yet fully featured and very efficient web framework for Go.
Iris known for simple and powerful api. Beside the low level access that Iris gives you. Iris loves MVC as well. It’s the only one Go web framework with rich support of the MVC Architectural Pattern with near zero performance cost.