module
Version:
v0.0.0-...-d775df5
Opens a new window with list of versions in this module.
Published: Jun 15, 2021
License: BSD-3-Clause
Opens a new window with license information.
README
¶
fasthttp-autoroute
介绍
Depend on go fasthttp and fasthttp-routing. Route HTTP GET/POST automatically according to your project directory.
使用说明
- Update exec/exec.go with yours, and 'go run exec.go'
- Import package gencode. Usage:
router := routing.New()
auto := gencode.Gencode{}
auto.RouteAll(router)
panic(fasthttp.ListenAndServe(*addr, router.HandleRequest))
- See test.go.
Directories
¶
Click to show internal directories.
Click to hide internal directories.