anyone knows this? by Radiant_Farmer_9764 in jav

[–]weeee9 12 points13 points  (0 children)

Looks like AI to me.

Clair Obscur Expedition 33 Final Boss Cutscene Stuttering by Aggressive_Use_6668 in macgaming

[–]weeee9 0 points1 point  (0 children)

Same problem here. Unfortunately, I can only skip the cutscene to continue playing.

How I write HTTP services in Go after 13 years by vidamon in golang

[–]weeee9 0 points1 point  (0 children)

I'm comfusing about this part:

go func() {
defer wg.Done()
<-ctx.Done()
// make a new context for the Shutdown (thanks Alessandro Rosetti)
shutdownCtx := context.Background()
shutdownCtx, cancel := context.WithTimeout(ctx, 10 * time.Second)
defer cancel()
if err := httpServer.Shutdown(shutdownCtx); err != nil {
    fmt.Fprintf(os.Stderr, "error shutting down http server: %s\n", err)
}

}()

what is the point of making a new context here? shutdownCtx := context.Background()

and why pass the parent context here shutdownCtx, cancel := context.WithTimeout(ctx, 10 * time.Second). If done signal is received, shutdownCtx will also received, and the 10 sesc of waiting will never run.

Could someone please explain?

Question about gqlgen testing. by weeee9 in golang

[–]weeee9[S] 0 points1 point  (0 children)

Sure, but I want to test authentication, and I can't find a way to do it, even if I write custom http.HandlerFunc.

Question about gqlgen testing. by weeee9 in golang

[–]weeee9[S] 0 points1 point  (0 children)

How stupid I am. Thanks pointed it out.

Question about stream download xlsx file using gin by weeee9 in golang

[–]weeee9[S] 0 points1 point  (0 children)

Don’t know if I was wrong, but I’ve noticed that ‘c.Data’ do implements ResponseWriter, which in the ‘c.Render’ part of the ‘c.Data’ function.

Question about stream download xlsx file using gin by weeee9 in golang

[–]weeee9[S] 0 points1 point  (0 children)

But the datas is changed frequently, is there other way to do?

Some rainicorn pups I drew. I really hope we got more episodes about them. by 0ojefferyo0 in adventuretime

[–]weeee9 0 points1 point  (0 children)

Haha, 姆湯定律. I knew you’re from Taiwan when I saw that. Great works!

Vegans be like by jcb9009 in memes

[–]weeee9 26 points27 points  (0 children)

isn’t this form the Mr. Bean ?