Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 27 17:41
    seal opened #3417
  • Nov 27 06:38
    MmToon commented #3416
  • Nov 27 05:59
    MmToon opened #3416
  • Nov 27 04:23
    rushairer commented #2704
  • Nov 26 13:28
    nishyt commented #3384
  • Nov 26 13:22
    nishyt commented #3384
  • Nov 26 12:03
    jarrodhroberson commented #1123
  • Nov 26 05:01
    zeek0x opened #3415
  • Nov 25 18:12
    ajmeese7 closed #3354
  • Nov 25 18:12
    ajmeese7 commented #3354
  • Nov 25 13:37
    Cookiery commented #3350
  • Nov 25 03:20
    Cookiery commented #3354
  • Nov 25 02:18
    ajmeese7 commented #3354
  • Nov 24 12:32
    therox commented #3350
  • Nov 24 09:54
    Cookiery commented #3354
  • Nov 24 06:18
    Cookiery commented #3369
  • Nov 24 05:53
    lcl1024 commented #3369
  • Nov 24 05:14
    Cookiery opened #3414
  • Nov 24 04:47
    Cookiery commented #3369
  • Nov 24 03:27
    riezkyfirdauz commented #2535
shawshawwan
@ZoeShaw101
@snowlyg do you have any ideas?
mrredo
@mrredo
i have registered this route auth.GET("/logout", Logout) its just /auth/logout when im on new chrome user i use it once it works and in console it says it made a request but when i go there second time it displays nothing in console and redirects to / heres my logout function
func Logout(c *gin.Context) {
    session := sessions.Default(c)
    session.Clear()
    err := session.Save()
    if err != nil {
        panic(err)
    }
    c.Redirect(301, "/")
}
Asbjørn Ulsberg
@asbjornu
Is it possible that the multitemplate.Renderer doesn't support router.SetFuncMap()? With multitemplate.Renderer registered as the router.HTMLRender, I only get an error trying to access the functions registered with SetFuncMap().
Asbjørn Ulsberg
@asbjornu
By gin-contrib/multitemplate#2 it looks like this is unsupported?
Asbjørn Ulsberg
@asbjornu
Now I wonder whether it's possible to create a URL from the router. gin-gonic/gin#3256
Wutklumpen
@Wutklumpen
Good morning! Is gin susceptible to the recent ParseThru exploit, or is it unrelated at all? here's the article: https://thehackernews.com/2022/08/new-parsethru-parameter-smuggling.html
xz
@ChangshaTiger
image.png
I have this piece of code
but Flush does not work
the client still got all 3 events as a single chunk
image.png
Richard
@moos3-dev:matrix.org
[m]
So how can I redirect stdout to a websocket for realtime updating of a process running to a web page? ie I have a endpoint that kicks off a process that returns all the output to the gin server console but I want to stream it to a redirected page that connects to a websocket so the user can see the progress
kevin olson
@acidjazz
Hi everyone - is this gitter the main spot to for the gin community? is there a slack or a discord?
David Martorana
@themartorana
If I do a BeamToNamed and in the construction of that, stack 4-5 BeamPages, if I do a pop, it removes all the pages... where I'd want a back/pop action to only remove the top-most page
is there a way to do that?
Tiger Wang
@tigerinus
Hello - I'd like to route any path starting with /ui to a specific handler, such as /ui/a.ext, /ui/a/a.ext, /ui/a/b/c/... or any arbitrary path. Is this supported? Thanks.
It looke like .GET("/ui") only matches the exact path /ui
kevin olson
@acidjazz
is it at all possible to render a template in gin similar to c.HTML but get the resulted html in a string instead of outputting it ?
Tymscar ⚙️
@Tymscar_twitter
Hi there! I am quite new to backend development and I am working on a project using Gin, and I am handling the auth with auth0. To be honest, I am a bit confused when it comes to how gin manages sessions
Basically they use "github.com/gin-contrib/sessions/cookie", but when I check on my chrome browser I dont see any session id or anything saved as a cookie
the only way I am logged in, is that I have a cookie set on the auth0 website
Now that would make me think this is a serverside cookie, but the issue with that is, theres no way for my backend to know who I am without reading the cookies from my auth0 login on their website
Harry Porter-Mills
@Haegin
Hi, I'm using Gin to build a backend API, and I'm trying to serve a JS SPA frontend using embedded files and the s.Engine.StaticFS functionality. This is working great for the index page, but when the SPA navigates to a route that should be controlled by the SPA Gin is returning a 404. Is there any way to tell it to serve the same index.html for everything under the route that's not in the filesystem?
ehsan
@ehsandavari
maildomain66
@maildomain66
大家好,Template渲染快速刷新F5报错有小伙伴遇到没?具体错误如下:
ViewEngine execute template error: write tcp 127.0.0.1:8080->127.0.0.1:59032: wsasend: An established connection wa
s aborted by the software in your host machine.
Michael
@fourdeefree_twitter
what would you recommend as an authentication middleware for Gin-based API?
Jenda Mudron
@jenmud
has anybody done any graphql with gqlgen using Gin and getting subscriptions working?
peng
@luoboding
hi . is there a method named CORS of gin.Context?
mbratiuk
@bananazury
Hi all. I'm new to Go, so don't judge too harshly. I wanted to know if it is possible to reload templates in Gin? I have an admin application that edits templates and a client application that works with these templates.
johndiego
@johndiego
hi guys
all rigth
mikepav
@mikepav:matrix.org
[m]
It's so quiet here
Cookiery
@Cookiery
Hey folks
Cookiery
@Cookiery
Hey everyone, how could I commit a fix?
nyancow
@nyancow

Hi! I'd like to use mutliple auth middlewares, so that at least one must pass for a gin.RouterGroup
Currently I use:

// adapter "github.com/gwatts/gin-adapter"
// ...
private.Use(adapter.Wrap(jwtMiddleware.CheckJWT))

and I'd like to add one more JWT verifier, but for a different issuer.
Maybe someone can point me in the right direction? :)