时间:2021-02-11 13:51:45
【文件属性】:
文件名称:冯
文件大小:190KB
文件格式:ZIP
更新时间:2021-02-11 13:51:45
Go 冯 Von是一个Web平台,旨在简化部署Web服务的过程。 Von使用路由HTTP请求。 使用冯 首先进口Von 。 Von使用Go模块: GO111MODULE=on go get -d github.com/zue666/von package main func main() { shutdown := make(chan os.Signal,1) signal.Notify(shutdown, os.Interrupt, syscall.SIGTERM) app := von.New(shutdown) app.Handle(http.MethodGet, "/", func(ctx context.Context, w http.ResponseWriter, r *http.Request) error { data := ma
【文件预览】:
von-master
----.gitignore(7B)
----go.mod(805B)
----response.go(1KB)
----go.sum(5KB)
----README.md(2KB)
----vendor()
--------modules.txt(2KB)
--------go.opentelemetry.io()
--------gopkg.in()
--------github.com()
----middlewares()
--------logger.go(847B)
--------metrics.go(889B)
--------panics.go(924B)
--------errors.go(1KB)
----logic.go(3KB)
----errors.go(2KB)
----middleware.go(687B)
----request.go(2KB)

网友评论