Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
0 votes
0 answers
77 views

I have a fan-out/fan-in worker pool that's supposed to stop all workers when the context is cancelled, but under heavy load with short timeouts, the goroutine count keeps climbing and never recovers. ...
Md.Jewel Mia's user avatar
Advice
0 votes
3 replies
163 views

I am trying to grasp (and sofar failing) to exactly grasp how the following code example works. It wraps (decorates) a standard http.client with 2 middleware functions (Logger and BasicAuth) that are ...
user3665510's user avatar
Tooling
0 votes
0 replies
84 views

When using fsnotify directly in Go, saving a single file triggers 4 to 5 raw events per save. For example saving a file in VSCode produces WRITE, CHMOD, WRITE, RENAME and CREATE events all from one ...
Mritunjay Tiwari's user avatar
1 vote
1 answer
122 views

I'm running into a strange error when running the .exe that I built from a simple Go script I'm making, when I try to run the .exe it gives the following error and deletes the .exe file: Translation: ...
Jordi Ruhí Fernández's user avatar
-1 votes
1 answer
94 views

I'm developing a hacking system that involves compiling hacking scripts to be injected in a CTF server. My goal is to compile each script from executing go build from Go code because the CTF server ...
wavesinaroom's user avatar
2 votes
1 answer
82 views

I use github.com/diamondburned/gotk4/pkg/gtk/v4. I'd like to create a modal dialog, like this: dialog := gtk.NewMessageDialog( &window.Window, gtk.DialogModal|gtk.DialogDestroyWithParent, ...
eliotttak's user avatar
-3 votes
1 answer
129 views

I'm writing a function that gets student grades in parallel goroutines and returns their arithmetic mean at the end. If at least one student has an error, the function should return the first error ...
ecoegor's user avatar
Advice
0 votes
6 replies
133 views

I am reading up about wrapping and unwrapping errors when doing a chain of calls. On this topic I came up the following snippet of code. err := controller() stack := []error{err} for len(stack) > ...
user3665510's user avatar
2 votes
0 answers
80 views

My goal is to apply an Overlay to an Openapi Document. The Overlay Specification exemplifies the usage of "traits". E.g.: given the following document: openapi: 3.1.0 info: title: API with ...
zelite's user avatar
Advice
0 votes
2 replies
62 views

The following test fails on golang , because the library "github.com/grahamgreen/phpserialize" wrongly escapes single quote characters. The working library which does not produce an error ...
kukulis's user avatar
Advice
0 votes
1 replies
115 views

Can anyone give me any idea how to implement this system inside a adnetwork ! I have the implementation for DSP with open RTB 2.5. But now I want to redirect my unused inventory/request to other SSPs. ...
Mehraz Hossain Rumman's user avatar
1 vote
0 answers
93 views

I have an Elixir module in which I am trying to call out to Pdfcpu to modify existing PDFs. Pdfcpu is written in Go and has a CLI and an API, and I am trying to use the API. I am using Wasmex to run ...
Paul B's user avatar
Tooling
0 votes
0 replies
130 views

So, I am implementing a Block Storage Engine in Go and go stuck at the Database part to store Manifest (file) information and an Index Table (a map to store each block information). I was thinking of ...
tojal's user avatar
1 vote
1 answer
171 views

I'm trying to use a generic function to make a value, conforming to a specified interface. It won't compile because one of the methods takes a pointer receiver. Code: package main // implyType is one ...
LoneCoder's user avatar
Best practices
0 votes
2 replies
179 views

I am coding a server in GoLang that allows multiple clients to connect to it and each time a client sends a message to the server that message is propagated to all of the other clients. I came up with ...
tojal's user avatar

15 30 50 per page
1
2 3 4 5
4965