Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

I’m experimenting with Go’s for range loop and goroutines, and I ran into behavior I can’t explain. This example prints inconsistent or duplicated values: package main import ( "fmt" ...
user31429062's user avatar
1 vote
0 answers
39 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
Tooling
0 votes
2 replies
24 views

I am working on a module called automat. When I save my go file, it's being reformatted from: package cmd import ( "context" "fmt" "os" "strings" &...
wookie_on_earth's user avatar
Best practices
2 votes
4 replies
58 views

I want to show the user a timestamp based on their preference, i.e. the system locale. I want to format the time depending on if they're using a time locale that normally shows a 12-hour time, or 24-...
Janne Enberg's user avatar
  • 2,069
-2 votes
0 answers
34 views

I have an api which is responsible for download the file of any mime type if its available in the s3 bucket now in the response it draws a presigned url, hmacsignature, urlbucket name, etc. Now I want ...
Vishal Srivastava's user avatar
0 votes
2 answers
87 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
0 votes
0 answers
28 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
69 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
30 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
7 replies
104 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
Best practices
1 vote
2 replies
57 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
46 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
117 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
-1 votes
0 answers
89 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
71 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

15 30 50 per page
1
2 3 4 5
4966