Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 05 09:43
    hewei-github commented #1479
  • Dec 05 09:41
    hewei-github commented #1479
  • Dec 05 09:40
    hewei-github commented #1479
  • Dec 05 09:40
    hewei-github commented #1479
  • Dec 05 09:23
    hewei-github commented #1479
  • Dec 05 09:22
    hewei-github commented #1479
  • Dec 05 09:21
    hewei-github commented #1479
  • Dec 05 09:20
    hewei-github commented #1479
  • Dec 05 09:10
    hewei-github commented #1479
  • Dec 05 09:07
    hewei-github commented #1479
  • Dec 05 09:05
    hewei-github opened #1479
  • Nov 28 14:29
    Laur1nMartins commented #1478
  • Nov 28 14:27
    Laur1nMartins edited #1478
  • Nov 28 14:22
    Laur1nMartins commented #1478
  • Nov 28 14:22
    Laur1nMartins commented #1478
  • Nov 28 12:50
    Laur1nMartins opened #1478
  • Nov 27 00:51
    icywaffle commented #1477
  • Nov 27 00:45
    icywaffle commented #1477
  • Nov 26 23:39
    icywaffle edited #1477
  • Nov 26 23:37
    icywaffle edited #1477
matrixbot
@matrixbot
Paul Ah, Controller Auto Interceptor
Paul haven't used them myself
Paul did you add the BeforeAfterFilter?
Stephen Russell
@daflad
Yes I have the filter, I can execute code which correctly runs at the same time as if I’d set a revel.InterceptMethod on app init.
I can’t figure out why the controller auto interceptor wont let me do a redirect
To me a Controller.Redirect is a valid revel.Result as requested in the docs
Stephen Russell
@daflad
I got it working by putting the revel.BeforeAfterFilter in front of the revel.InterceptorFilter in the app/init.go
matrixbot
@matrixbot
Paul take a look at the code of BeforeAfterFilter
Paul it only sets c.Result
Paul would probably need something like this to act on different c.Result:
Lucian Bentea
@lbentea
Hi! Is the Revel framework still maintained? https://github.com/revel/revel/ shows the last commit was one year ago, PRs are also old, and there are 77 open issues.
matrixbot
@matrixbot
Paul it is
Paul but a bit slowly
Paul also it's quite usable
Paul there aren't many big problems
Lucian Bentea
@lbentea

Thanks for your feedback!

Has anyone compared it to other Go web frameworks, like https://github.com/gobuffalo/buffalo or https://github.com/astaxie/beego or https://github.com/gin-gonic/gin (which seem more active)?

Trying to decide what would be the best fit for an app that I'm building...

matrixbot
@matrixbot
Paul several have
Paul but there's not a lot of unbiased comparisons
Lucian Bentea
@lbentea
It would be really helpful if you could point me to some of those comparisons, unbiased or not...
matrixbot
@matrixbot
Paul * but there aren't a lot of unbiased comparisons
Paul * but there aren't many of unbiased comparisons
Paul google has always served me in the past
Lucian Bentea
@lbentea
Thanks a lot! Will have a look.
Marwan Rabbâa
@waghanza
@/all We try to have an unbiased comparison of golang frameworks on https://github.com/the-benchmarker/web-frameworks (in go directory) feel free to take a look and give some feedbacks (gh issues, gitter or else) :heart:
matrixbot
@matrixbot
Paul it seems to only focus on speed and revel is missing
Marwan Rabbâa
@waghanza
totally, as for now, there is only speed (but some other factual indicators are planned, like resources)
indeed, revel is not here since anyone has made a PR (and I have no time for it), so if anyone want to PR i'll be glad to review
Guilherme Bastos Cavalcante
@cavalcantegb
Hi people, I am trying to create a windows service using the .exe generated by revel after build, but everytime I try to start the service I got the error [SC] StartService ERROR 1053
Does someone has any thoughts about it?
Ali Naqvi
@naqvis
@cavalcantegb Windows service need to implement specific interface as that is different from normal exe. Error you are receiving is stating that the service did not respond to the start or control request in a timely fashion.
Refer to https://godoc.org/golang.org/x/sys/windows/svc/example for Windows Service example
Guilherme Bastos Cavalcante
@cavalcantegb
Thanks @naqvis, I'll take a look
Oleg Vakarev
@helgix
Offtopic on net/http: who knows the better way to pass request scope data from middleware to other middkeware? Than request ctx
I heard that request ctx should not control logic as api is dynamic and weak
But googled that most people do
matrixbot
@matrixbot
Paul are there any good alternatives?
Oleg Vakarev
@helgix
Like gin does to w
Oleg Vakarev
@helgix
Has its own context and wrap request but considered as not idiomatic
matrixbot
@matrixbot
Paul yeah, that's not very compatible with net/http
Brenden Soares
@brendensoares
@helgix are you talking about using Go’s context interface vs a custom request context?
Oleg Vakarev
@helgix
@brendensoares about modyfying of context which lives inside *http.request
Request.withcontext
phantomarther
@phantomarther
How does websockets implemented ?