74,491 questions
1
vote
0
answers
70
views
Forcing Go to not use the gold linker
I'm trying to build a Go package in Flathub's CI for an aarch64 Linux architecture. The build is failing while compiling a C dependency:
# github.com/rclone/rclone
/usr/lib/sdk/golang/pkg/tool/...
0
votes
0
answers
99
views
Delve debug go app in docker container with network_mode host
I want to debug my go code which is mounted into a docker container. Delve is installed inside the container.
I am using goland by jetbrains.
Everything works fine as long as I don't use the container ...
Advice
2
votes
9
replies
248
views
Which programming language is best for learning System Design?
I’m planning to start learning System Design, but I’m a bit confused about which programming language I should focus on for it.
Most of my experience so far is with C++ and JS, but I often see people ...
0
votes
1
answer
73
views
Is Youtube V3 IfNoneMatch is a no-op?
Considering the following code, I expect the call to return an error when the Etag that is provided is the same as the remote one.
But when testing it does not really matter if it match or not.
func (...
0
votes
0
answers
84
views
BigQuery Storage Write API: "context deadline exceeded" only on low-frequency table
Problem
I'm using the BigQuery Storage Write API (Go managedwriter package) to upload data to three tables with very different ingestion rates:
Table
Frequency
Record Size
A
~10 records/sec
Several KB
...
1
vote
1
answer
78
views
Debug Golang dockerized project tests
I have a Golang project, a single page application in React, where golang works as static files server and API. The application can be run using docker compose up and npm run in the web folder.
Here ...
Advice
1
vote
3
replies
129
views
Project or features suggestion to add to my project to impress company or CEO
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 ...
0
votes
1
answer
110
views
Accessing the individual words of the content a file
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&...
Advice
0
votes
5
replies
134
views
How can I safely implement a progress bar in a concurrent Go port scanner?
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 ...
2
votes
0
answers
89
views
Go RPC streaming send not working properly when optional values not provided
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 ...
0
votes
0
answers
108
views
selenium/Edge driver fills up memory in golang application
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 ...
1
vote
1
answer
134
views
How can I migrate updateOne operation with `UpdateOptions ArrayFilters` from mongo-driver v1 to v2?
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": ...
2
votes
1
answer
134
views
protoc3 grpc (go) code generation problem
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
...
Advice
0
votes
1
replies
119
views
How to stream PostgreSQL (pgx.Rows) query results into a pager (less) without buffering the entire result set?
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 ...
Best practices
0
votes
1
replies
72
views
What additional fields are needed to identify instances of services in metrics, traces, logs - After replicating services across multiple replicas?
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 ...