Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fasthttp example #1

Merged
merged 2 commits into from
Mar 23, 2020
Merged

Added fasthttp example #1

merged 2 commits into from
Mar 23, 2020

Conversation

akdilsiz
Copy link
Contributor

@akdilsiz akdilsiz commented Jan 7, 2020

No description provided.

@akdilsiz akdilsiz changed the title Added phi router examples Added fasthttp example Jan 7, 2020
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the .idea folder ?

@@ -7,3 +7,4 @@ A curated list of middleware examples for [limiter](https://github.com/ulule/lim
* [Beego](https://github.com/ulule/limiter-examples/blob/master/beego/main.go)
* [Chi](https://github.com/ulule/limiter-examples/tree/master/chi/main.go)
* [Echo](https://github.com/ulule/limiter-examples/tree/master/echo/main.go)
* [fasthttp](https://github.com/ulule/limiter-examples/tree/master/fasthttp/main.go)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* [fasthttp](https://github.com/ulule/limiter-examples/tree/master/fasthttp/main.go)
* [FastHTTP](https://github.com/ulule/limiter-examples/tree/master/fasthttp/main.go)

import (
"fmt"
"github.com/go-redis/redis"
"github.com/ulule/limiter/v3"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you re-organize the import ? Following this convention:

import (
   [ stdlib ]

   [ external ]

   [ internal ]
)

github.com/astaxie/beego v1.12.0
github.com/cj1128/phi v0.0.0-20171026043140-ee6510b82038
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you execute go mod tidy here ?

@novln novln mentioned this pull request Mar 23, 2020
@novln novln merged commit d08c72e into ulule:master Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants