From dc60d41df881360083e4c826bd41d2956919805b Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Sun, 19 Aug 2018 11:35:13 +0800 Subject: [PATCH] Change the indentation to 4 spaces in README. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 295b088..2c38539 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,19 @@ go get github.com/gin-contrib/authz package main import ( - "net/http" + "net/http" - "github.com/casbin/casbin" - "github.com/gin-contrib/authz" - "github.com/gin-gonic/gin" + "github.com/casbin/casbin" + "github.com/gin-contrib/authz" + "github.com/gin-gonic/gin" ) func main() { - // load the casbin model and policy from files, database is also supported. - e := casbin.NewEnforcer("authz_model.conf", "authz_policy.csv") + // load the casbin model and policy from files, database is also supported. + e := casbin.NewEnforcer("authz_model.conf", "authz_policy.csv") - // define your router, and use the Casbin authz middleware. - // the access that is denied by authz will return HTTP 403 error. + // define your router, and use the Casbin authz middleware. + // the access that is denied by authz will return HTTP 403 error. router := gin.New() router.Use(authz.NewAuthorizer(e)) }