74,443 questions
0
votes
0
answers
8
views
gotk3 tree_model_iter_next or tree_model_foreach?
I have an app written in Go using GOTK3 and GTK3. I want to step through each entry in a liststore, read an index value and replace four other values in the same line.
I have tried using foreach:
...
-2
votes
0
answers
49
views
Tag Mismatch error when using Java AES implementation to decrypt json files encrypted by Golang AES implementation [closed]
I received a json file encrypted with Golang AES/GCM/NoPadding,and I implemented AES/GCM/NoPadding using Java. I can encrypt json file and decrypt it and the other side (Golang) also can encrypt json ...
0
votes
0
answers
17
views
Connecting to Elasticache Valkey Using IAM Role
tl;dr Working in Go, and had to write my own token signing method connect to Valkey Instance in Elasticache. Keep getting error: "WRONGPASS invalid username-password pair or user is disabled.&...
3
votes
2
answers
38
views
Golang Fyne, Limit the size of the left object with NewHSplit
enter image description here
enter image description here
example1 gif
example2 gif
I'm trying to create a navigation bar on the left side of the window. The problem is that the line (NewHSplit) can ...
2
votes
0
answers
31
views
push Histogram metrics through pushgateway, but only found +lnf bucket
What did you do?
I use the following code to generate some metrics data, and then push it to Prometheus through pushgateway. I use Histogram type data and design multiple buckets. However, after ...
1
vote
0
answers
32
views
how can I use Quotactl system call of linux to set project quota in ext4 filesystem
I have checked the man7.org to find the answer, and I found that the Q_SETQUOTA subop of quotactl seems to support only user and group quota?
Q_SETQUOTA
Set quota information for user or ...
-1
votes
0
answers
28
views
How to fix PokeAPI TLS Error in Golang (Debian)? [closed]
I am trying to run a HTTP Server through Go, and load a list of Pokemon to the starting page with a PokeAPI package. The brunt of making it actually work was on a Chromebook using a GitHub Codespace, ...
1
vote
0
answers
32
views
Migrating a domain model that exposes interfaces with Gorm [closed]
I am currently working on an application whose core responsibility is recording user feedback and input through surveys. The surveys are fairly simplistic - one or more question/answer pairs, often ...
-2
votes
0
answers
33
views
Copying Nested Struct Into Postgres DB Using pgx In Golang [closed]
I have a nested struct that contains multiple rows of data (converted from JSON) that I need to copy into a Postgres database. I am trying to use the copy method shown here but I am getting:
dailyData....
-3
votes
0
answers
17
views
Modify launch.json file [closed]
Got the same problem. It solved by modify launch.json like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "...
-1
votes
0
answers
20
views
Increase in Go Kafka Consumer CPU Usage [closed]
I am observing increase in kafka consumer service CPU usage to 80-90%. Following are the kafka consumer details
fetch min bytes - 10kb
batch max poll records - 10
poll interval - 2 seconds
consumer ...
-2
votes
0
answers
20
views
binding.cpp:1:10: fatal error: 'common.h' file not found [closed]
% go mod init llama-test
% go get github.com/go-skynet/go-llama.cpp
% go run llm.go
binding.cpp:1:10: fatal error: 'common.h' file not found
getting this error
even for this,
go run ./cmd/main.go --...
-3
votes
1
answer
35
views
Should I Use a Context in Go Even If It Is a Critical Operation? [closed]
"At Google, we require that Go programmers pass a Context parameter as the first argument to every function on the call path between incoming and outgoing requests. This allows Go code developed ...
-1
votes
0
answers
29
views
How to add WeakRef support to goja JavaScript engine in Go? [closed]
I'm using the goja JavaScript engine in my Go application and need to implement WeakRef support for my use case. Currently, when I try to use WeakRef in goja, it throws an error:
package main
import (...
3
votes
1
answer
41
views
go-fiber: How to adjust the response message inside the recover middleware
go-fiber comes with a middleware to recover from panic. But I don't want to expose internals, so how can I adjust the message returned to the client? Or is this middleware not made for this - if so, ...