Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
3 replies
110 views

I see everyone is doing the same project ecom or some learning platform, streaming platform or social media. can anyone suggest me a unique one. I am a fresh go-lang developer (has done ecom as my ...
Sojil K john's user avatar
0 votes
1 answer
94 views

I am working on a project whereby I want to access the individual words in a file and not the individual character eg. "Welcome to my world" should be equal to "Welcome" "to&...
Ashom Azi's user avatar
-4 votes
0 answers
49 views

How can I effect a change on more than one word if the number of word is specified. for example: today is my day (up 2). Where I am to convert the last two words to uppercase i.e today is MY DAY
Jerrie's user avatar
  • 1
Advice
0 votes
4 replies
86 views

I wrote an open port scanner in Go. For local adresses scans are instant. However, when I scan an external address it takes a bit longer, and I want to see the progress. I tried to implement a ...
Vuq17's user avatar
  • 1
2 votes
0 answers
79 views

I am developing an RPC streaming endpoint in Go with RPC code generated through thrift. I am having an issue where clients aren't receiving my send calls when optional values aren't provided in my ...
NumberOneRobot's user avatar
0 votes
0 answers
70 views

We have a golang web application which is using msedgedriver.exe to convert HTML to PDF. For each user session we create a new Edge Webdriver and Quit when the session terminates. Our problem is, that ...
Anders Finn Jørgensen's user avatar
1 vote
1 answer
78 views

I'm trying to migrate this from mongo-go-driver v1 to v2 filter := bson.D{bson.E{Key: "_id", Value: homeID}} arrayFilters := options.ArrayFilters{Filters: bson.A{bson.M{"x._id": ...
Stefano Cappa's user avatar
2 votes
1 answer
93 views

trying to generate protoc 3 code for my go project. The protoc documentation lists that I can just take the latest version like : go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest and ...
user3665510's user avatar
Advice
0 votes
1 replies
84 views

Im building a PostgreSQL CLI client in Go (pgxcli), inspired by pgcli. I am using the pgx driver, and the app features an REPL, autocompletion, and syntax highlighting. Currently, the code buffers the ...
Balaji J's user avatar
-6 votes
0 answers
102 views

I'm trying to unmarshal a JSON string into a Go struct, but I keep getting the error: invalid character '}' after top-level value Here is my code to reproduce this error: package main import ( &...
Heisenberg's user avatar
Best practices
0 votes
1 replies
68 views

After replicating services across multiple instances (replicas), we need to figure out what additional fields are required to identify instances in metrics, traces, logs, and health checks. For ...
DimaVmkMsu's user avatar
4 votes
1 answer
145 views

I have a Go function for encrypting data in parallel using AES-GCM: func encryptParallel(ctx context.Context, aead cipher.AEAD, w io.Writer, r io.Reader, workers uint64) error The design is: One ...
Onyz's user avatar
  • 83
2 votes
1 answer
156 views

Go v1.22 added the ability to easily range from 0 to n-1: // Prints 0, 1, 2 on separate lines. for i := range 3 { fmt.Println(i) } However, it doesn't work as expected when the expression's type ...
Richard Hansen's user avatar
0 votes
1 answer
80 views

I am trying to play raw audio samples with raylib. All examples I can find are with a mono output, and playing a mono signal works fine. However, when I try to play signal, it gets distorted. ...
Philipp Ludwig's user avatar
2 votes
0 answers
133 views

I have the following Go code: package main import ( "fmt" "time" ) type ticker struct { ticker time.Ticker } func main() { var t1 ticker // var err error ...
gkuga's user avatar
  • 37

15 30 50 per page
1
2 3 4 5
4967