Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of -5
0 answers
76 views

PS C:\Users\jeets\OneDrive\Documents\GitHub\core-backend> go run main.go 2026/07/28 17:44:52 Starting server... 2026/07/28 17:44:52 Initializing database... 2026/07/28 17:44:57 ⚠ Redis not ...
Score of 0
1 answer
167 views

Unlike Go's iota-based enums, Java enums are singleton objects. Each enum constant is a unique instance that can carry additional state and behavior, while also providing name(), ordinal(), values(), ...
Score of 1
0 answers
163 views

I am working on a web crawler using Go and Supabase. This section of code throws an error when the length of the newLinks slice is above a certain number -- I haven't been able to determine what that ...
Score of 3
0 answers
137 views

In the past I've used the version of WalkDir that is not based on fs.FS, but I recently tried changing to the fs.FS-based one so that I could more cleanly do unit testing. But now I feel like I'm not ...
Advice
0 votes
3 replies
180 views

I am making pet-project with Go and React. I want to make web app, that for start, shows your location on a interactive world map. How should I make app logic with Go and React, so it would be ...
Advice
0 votes
4 replies
223 views

In Python, I can use the str.isdigit() method to check whether a string contains only numeric characters. For example: "12345".isdigit() # True "123a".isdigit() # False &...
Score of 1
0 answers
58 views

package browser import ( "context" "log" "os" "os/exec" "time" "sync" "path/filepath" "...
Score of 2
1 answer
105 views

I am trying to fix the compilation of file overlay/tun_freebsd.go in module github.com/slackhq/nebula on armv7 FreeBSD. This file uses the syscall.Iovec structure, which is defined as type Iovec ...
Score of 1
1 answer
178 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. ...
Advice
0 votes
3 replies
201 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 ...
Tooling
0 votes
0 replies
115 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 ...
Score of 1
1 answer
139 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: ...
Score of -1
1 answer
103 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 ...
Score of 2
1 answer
97 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, ...
Score of -3
1 answer
145 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 ...

15 30 50 per page
1
2 3 4 5
4965