From 81e04e67283fb0b0c82cb945538917d6bbc28775 Mon Sep 17 00:00:00 2001 From: razonyang Date: Thu, 2 Jul 2020 13:27:45 +0800 Subject: [PATCH] Rename module path --- README.md | 14 +++++++------- go.mod | 2 +- middleware.go | 2 +- middleware_test.go | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 768729f..e5a3d26 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # CleverGo Authentication Middleware -[![Build Status](https://img.shields.io/travis/clevergo/authmidware?style=for-the-badge)](https://travis-ci.org/clevergo/authmidware) -[![Coverage Status](https://img.shields.io/coveralls/github/clevergo/authmidware?style=for-the-badge)](https://coveralls.io/github/clevergo/authmidware?branch=master) -[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white&style=for-the-badge)](https://pkg.go.dev/clevergo.tech/authmidware?tab=doc) -[![Go Report Card](https://goreportcard.com/badge/github.com/clevergo/authmidware?style=for-the-badge)](https://goreportcard.com/report/github.com/clevergo/authmidware) -[![Release](https://img.shields.io/github/release/clevergo/authmidware.svg?style=for-the-badge)](https://github.com/clevergo/authmidware/releases) +[![Build Status](https://img.shields.io/travis/clevergo/authmiddleware?style=for-the-badge)](https://travis-ci.org/clevergo/authmiddleware) +[![Coverage Status](https://img.shields.io/coveralls/github/clevergo/authmiddleware?style=for-the-badge)](https://coveralls.io/github/clevergo/authmiddleware?branch=master) +[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white&style=for-the-badge)](https://pkg.go.dev/clevergo.tech/authmiddleware?tab=doc) +[![Go Report Card](https://goreportcard.com/badge/github.com/clevergo/authmiddleware?style=for-the-badge)](https://goreportcard.com/report/github.com/clevergo/authmiddleware) +[![Release](https://img.shields.io/github/release/clevergo/authmiddleware.svg?style=for-the-badge)](https://github.com/clevergo/authmiddleware/releases) ## Usage @@ -11,7 +11,7 @@ import ( "clevergo.tech/auth" "clevergo.tech/auth/authenticators" - "clevergo.tech/authmidware" + "clevergo.tech/authmiddleware" "clevergo.tech/clevergo" ) ``` @@ -20,7 +20,7 @@ import ( var store auth.IdentityStore authenticator := authenticators.NewBasicAuth(store) app := clevergo.New() -app.Use(authmidware.New(authenticator)) +app.Use(authmiddleware.New(authenticator)) ``` Checkout [example](https://github.com/clevergo/examples/tree/master/auth) for details. diff --git a/go.mod b/go.mod index 808d803..9d6c75b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module clevergo.tech/authmidware +module clevergo.tech/authmiddleware go 1.13 diff --git a/middleware.go b/middleware.go index 8539213..8c90a66 100644 --- a/middleware.go +++ b/middleware.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. -package authmidware +package authmiddleware import ( "context" diff --git a/middleware_test.go b/middleware_test.go index 352e739..01388ea 100644 --- a/middleware_test.go +++ b/middleware_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. -package authmidware +package authmiddleware import ( "context"