echo-middleware - 为Echo框架提供多个中间件的Go包

187 阅读1分钟

Echo框架 - 中间件

Build StatusCodecov branchGo ReferenceGo Report CardLicense

描述

echo-middleware是一个Go软件包,为Echo框架提供了多个中间件。

要求

Echo Middlewares需要Go 1.15或更高版本和Echo Framework v4。

安装

使用go get。

$ go get github.com/faabiosr/echo-middleware

然后将该包导入到你自己的代码中:

import "github.com/faabiosr/echo-middleware"

开发

要求

  • 安装Go

制作文件

# Clean up
$ make clean

# Download project dependencies
$ make configure

# Run tests and generates html coverage file
$ make cover

# Format all go files
$ make fmt

# Run tests
$make test