Skip to main content
18 votes
2 answers
2k views

the default option of go.diagnostic.vulncheck it's warning "Invalid settings: setting option "vulncheck": invalid option "Prompt" for enum". haven't find any other ...
Sizolit's user avatar
  • 163
Tooling
1 vote
7 replies
144 views

In JavaScript projects it's common to keep shared helpers in `helpers/`, `utils/` or `common/` (logging, filesystem helpers, string helpers, etc.). In Go I’ve noticed different conventions. What is ...
m__mdy__m's user avatar
  • 194
Best practices
1 vote
7 replies
128 views

If you want to read all values from a channel ch until it is closed, you can do so with range: for x := range ch { // do something with x } This will block until ch is closed. I want to read all ...
bungulator's user avatar
Best practices
0 votes
7 replies
130 views

I want to create a ctx for a task required by multiple other contexts. It should get cancelled when all of those contexts got cancelled. My first approach was this, where the AfterFunc of the last ...
bungulator's user avatar
1 vote
1 answer
112 views

I am beginner in go and i want to make a virtual environment for python using it.the .venv folder creates with no error but it can't be activated.Here is my code package main import ( "fmt&...
parham ardeshiri's user avatar
Best practices
0 votes
5 replies
97 views

I'm designing a CLI tool in Go that will expose roughly 100 commands. Each command has its own set of flags, and there are also several global flags. My main goals are maintainability, testability, ...
m__mdy__m's user avatar
  • 194
3 votes
1 answer
98 views

I'm building a code indexing tool for LLMs using tree-sitter in Go. The goal is to split source files into chunks (~600 lines) that respect function/class boundaries for better LLM context. When a ...
Nathan Nguyen's user avatar
Tooling
2 votes
3 replies
81 views

This days me and my friend made a multiplayer game in godot. The server is written in go using protobaf. To test the multiplayer, i used ngrok. I know we can use port forwarding but i thought ngrok is ...
ΝΙΚΟΛΑΣ ΜΕΝΥ's user avatar
1 vote
0 answers
112 views

I need to send commands by telnet to a matrix switcher from Atlona (though, I suppose, it's not a problem with a device, but anyway). One of commands is x4AVx5. When I send it from terminal, it works. ...
titovtima's user avatar
-1 votes
2 answers
122 views

I'm having an issue using template inheritance in Go. All of my routes are rendering the same file from my templates folder, which happens to be the last one (ViewGames.html). Here is what my ...
Darien Miller's user avatar
Best practices
0 votes
2 replies
95 views

I'm building a webhook handler that needs to accept webhooks from multiple providers (Stripe, GitHub, Shopify, Twilio, etc.). Each provider uses different signature verification methods: - Stripe: ...
abhineet's user avatar
  • 235
1 vote
1 answer
119 views

I'm having trouble querying UUID values stored as BLOB(16) in SQLite3 using Go (with goqu). I insert a UUID using uuid.New().MarshalBinary() and this works correctly. However, when I try to select the ...
StephenHawking's user avatar
1 vote
1 answer
69 views

I am having a strange (to me) an issue with golang mongodb connector. The current problem is that I have a db retrieval function that actually returns no errors, but the struct expected is just not ...
Ilian Zapryanov's user avatar
1 vote
0 answers
80 views

colleagues! - I use the "nats" message broker in my Golang project. - Currently, when using "NATS," large messages aren't compressed at all, causing the producer to crash with an ...
DimaMsuVmk22's user avatar
1 vote
1 answer
72 views

I have created a function to return the db connection of a postgresdb using pgxpool. But I don't want to create multiple pools since i will be calling this function each time to execute a query. Since ...
lokesh's user avatar
  • 54

15 30 50 per page