fasthttp-autoroute

module
v0.0.0-...-d775df5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2021 License: BSD-3-Clause

README

fasthttp-autoroute

介绍

Depend on go fasthttp and fasthttp-routing. Route HTTP GET/POST automatically according to your project directory.

使用说明
  1. Update exec/exec.go with yours, and 'go run exec.go'
  2. Import package gencode. Usage:
	router := routing.New()
	auto := gencode.Gencode{}
	auto.RouteAll(router)
	panic(fasthttp.ListenAndServe(*addr, router.HandleRequest))
  1. See test.go.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL