8 questions from the last 7 days
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
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 ...
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
41
views
How do I change the indent of a YAML sequence in goccy/go-yaml?
I have a YAML file which starts out like this:
additional_hostnames: []
I use goccy/go-yaml to parse it and add a new value like this:
newHostnameNode := ast.String(token.New(hostname, hostname, &...
0
votes
0
answers
56
views
What is the correct way to iterate through a JSONL reader with jsonv2
Consider this demo example:
import (
"bytes"
"io"
"log/slog"
"github.com/go-json-experiment/json"
"github.com/go-json-experiment/json/...
-5
votes
0
answers
44
views
Unable to run .go file without admin rights in vs code [closed]
I am new to go and I have written a simple go Lang Hello world code but when I try to run i using command go run hello.go it gives me error.
"The application you are trying to run is not ...
0
votes
0
answers
20
views
runtime.AddCleanup does not run in golang [duplicate]
Due to application-specificity, I am trying to store either an object or a integer into a single int64 using the code below. However, the GC failed to release the resource. I am not sure where it went ...