25 questions from the last 30 days
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
...
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 ...
-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'...
-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 ...
-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 ...
-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 ...
-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()...
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 ...
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 "...
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....
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 ...
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?
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 ...
-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 ....
-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&...