English | 简体中文
Gen is a web framework analogous to a simplified Gin
- go get it
go get -u github.com/lbh2001/gen/gen
- import it
import "net/http"
(we need package net/http
to support it)
import "github.com/lbh2001/gen/gen"
- It can handle requests in different ways.(GET, POST ...)
- Using router groups to unify managing paths.
- Completed the redirection of trailing slash paths.
- It stores and matches paths and handler functions based on trie.
- Supporting for global middlewares and custom local middlewares.
- Encapsulates multiple return type information.
- Clever error handling mechanism.
- Supporting HTML template rendering.