Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.
0 votes
1 answer
105 views

How much stack space is required for saving the function context in Go 1.24?

How much stack space is required for saving the function context in Go 1.24? I wrote an go demo like this: func getStackUsage() { var recurse func(int) recurse = func(n int) { tmp := n ...
Kevin's user avatar
  • 47
2 votes
2 answers
66 views

set bubbletea program on model

I'm attempting to use the bubbletea library in Go, and one of my models needs to send a message when updated, which requires a reference to the bubbletea Program. I'm running into a chicken and egg ...
Rich Remer's user avatar
  • 2,748
-3 votes
1 answer
90 views

UDP server in Go doesn't receive calls from Lua client [closed]

I have a UDP server set up in go, that reads from any address and then sends a response, and a client that sends the calls to the server. the client sends the calls successfully, but the server doesn'...
Dr-flimflam's user avatar
-3 votes
1 answer
95 views

How to cancel long-running tasks when a Go HTTP server is shut down? [duplicate]

I'm writing an HTTP server in Go that performs long-running tasks (e.g. data processing or computation). When the server shuts down via srv.Shutdown(ctx), I want in-progress handlers to stop, even if ...
Volodya Lombrozo's user avatar
-3 votes
0 answers
79 views

Port http server is different but still get response [closed]

I'm currently building a simple reverse proxy where I can forward to the origin server. When the client requests from the reverse proxy, I do not change the header of the request. The request still ...
Faizisyellow's user avatar
-2 votes
1 answer
67 views

Go build eror : Program 'time-converter.exe' failed to run: The specified executable is not a valid application for this OS platform

I am developing the time converter app. when I try to build it generate the executable but when it keep saying me this error: Program 'time-converter.exe' failed to run: The specified executable is ...
Ankit Bourasi I's user avatar
-3 votes
1 answer
52 views

Generic type constraint match reflect.Type passed [closed]

Could you please help to mercy golang compiler in the following example. I'd like to implement generalized string parser func Value[T reflect.Type](value string, t reflect.Type) T { switch t.Kind()...
Mykhaylo Adamovych's user avatar
1 vote
0 answers
64 views

how i can populate struct type only in returning joined column from sql

I have a table named tasks where have relationship one-many to another table (projects), i want to query tasks with projects but only return selected column from the projects table. how i can do that ...
Faizisyellow's user avatar
0 votes
1 answer
124 views

golang can't find SOME standard library packages (could not import fmt (open : no such file or directory)) [closed]

I'm new to Go and I'm having a strange problem. It has (I think) little to do with the package I want to change, wrap. It has to do with imports. I'm writing a test program which imports "...
Erik Bennett's user avatar
  • 1,113
2 votes
0 answers
65 views

Android App with Go Library Causes OpenGL Errors

I am working on an Android application developed in Kotlin that integrates a third-party library written in Go. This library has been compiled as an AAR file and integrated through Gradle's build....
he1ex-tG's user avatar
1 vote
0 answers
57 views

My iOS Flutter app is blocked from reaching your Mac’s local server

My iOS Flutter app is blocked from reaching my Mac’s local server at 192.168.1.170:8181. I can curl from my iphone to my Mac's local server and I can also reach the swagger docs. However, when I try ...
Kevin Wiggins's user avatar
0 votes
0 answers
60 views

Is there a way to use go mobile, and gioui? [closed]

I want to make an android app, would it be possible to use gioui (for the UI), and go mobile (to build it to android) and make an app?
Hunter Parker's user avatar
1 vote
0 answers
68 views

Environment variables not accessible in dynamically loaded .dylib on macOS using Rust libloading, but works on Windows

macOS: The dynamically loaded .dylib cannot read environment variables that were set by the main Rust process at runtime Windows: The same code works perfectly - the .dll can access environment ...
leibuyun's user avatar
-1 votes
1 answer
62 views

DKIM verification fails for mail with error "body hash did not verify"

Trying to do dkim verification using go lang module .https://github.com/emersion/go-msgauth/blob/master/dkim/verify.go#L212 . But it fails and gives body hash did not verify. When i directly pass a ....
AdityaV17's user avatar
-2 votes
0 answers
88 views

Parsing Nested Structs In Golang [duplicate]

I am using the following custom type: type Cve struct { Cve []CveInfo `json:"vulnerabilities"` } type CveInfo struct { Cve struct { ID string `json:"id&...
bbjrStackOverflow's user avatar

15 30 50 per page