Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

I'm having an issue using template inheritance in go, but all of my routes are rendering the same file from my templates folder, which happens to be my last one (ViewGames.hmtl). Here is what my ...
Darien Miller's user avatar
0 votes
0 answers
19 views

I’m trying to understand how plugin systems differ between Mattermost and Apache APISIX, specifically in how they use RPC for external plugins. Mattermost plugins must be written in Go. The server ...
AArgh's user avatar
  • 9
1 vote
0 answers
55 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
0 answers
27 views

I have been trying to write a daemon in go to run on linux that would periodically do certain actions, and once some conditions are met, it would connect to AD, and write a value to a given record. ...
Gregory Sky's user avatar
Best practices
0 votes
6 replies
81 views

Lets say I wanted to create a context which gets cancelled as soon as all of some subcontexts got cancelled. Would this be a valid way to do that, or is there a better option? My idea is, that the ...
bungulator's user avatar
Best practices
1 vote
2 replies
50 views

I am refactoring my backend where clients can start threads and make replies. I keep a 3-layer architecture with thin handlers that bind and validate, service layer with all business logic, and a repo ...
glassyellow0902's user avatar
1 vote
0 answers
40 views

I am creating a Kubernetes controller that needs to modify resources when specific conditions are met. I would like to define my match conditions using CEL expressions in a configuration file similar ...
E. Pratt's user avatar
  • 154
Best practices
1 vote
7 replies
110 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
0 votes
0 answers
86 views

The Go spec states: "An identifier may be exported to permit access to it from another package. An identifier is exported if both: 1. ... 2. the identifier is declared in the package block or it ...
bungulator's user avatar
Best practices
0 votes
3 replies
65 views

I have an Entity Called CardTemplate. For physical cards, there will have to be a pattern chosen to physically print the card. And based on the two types of operations that the cards are allowed to do,...
Erfan Mirhoseini's user avatar
Advice
3 votes
1 replies
57 views

I am writing a forum-like API and I want to protect private information from unauthorized users. Depending on the role of client that makes a request to `GET /posts/:id` I redact information such as ...
glassyellow0902's user avatar
1 vote
1 answer
69 views

I am trying to write an XML parser which will load a data from XML file and convert it to golang structs, but apparently it is not working and I have no idea why. I wrote a test to troubleshoot it, ...
oscarsierraproject's user avatar
2 votes
1 answer
54 views

I'm trying to parse the Handshake response packet from MySQL client/server protocol For the task I'm connecting to the application via mysql cli client: mysql --version mysql Ver 9.5.0 for macos15.4 ...
Deyan Georgiev's user avatar
1 vote
0 answers
37 views

I have a dll that exposes a method that executes a callback passing a pointer to a struct that we can think like this: struct Msg { uint32_t type; uint32_t length; union data{ ...
Stefano Balzarotti's user avatar
-2 votes
0 answers
61 views

Why does my Go HTTP server freeze when I call another API inside a goroutine? func handler(w http.ResponseWriter, r *http.Request) { go func() { resp, err := http.Get("https://example....
ezequiel's user avatar

15 30 50 per page
1
2 3 4 5
4966