9,549 questions with no answers
1
vote
0
answers
44
views
Why is go build trying to download local code, but only in gitlab
We have a project with 3 git repositories, let's call them backend, ui and library, hosted at gitlab.com/mycompany. These build quite happily.
I am trying to move the three repos into one, so we now ...
2
votes
0
answers
118
views
Is it possible to retrieve lists of HDF5 file, group, dataset, and attribute in Golang
I'm currently working on developing data reading and writing for HDF5 files in Golang. I've consulted the library documentation and managed to successfully implement writing operations. Now, I need to ...
0
votes
0
answers
120
views
DB query execution hanging in golang
I don’t understand why this is happening. I’m using the Go database package to connect to a PostgreSQL database. I loop through fullmsg (88 messages), but after processing about 27 messages, ...
Best practices
1
vote
0
replies
29
views
Where should I create the application session when using an internal SSO (Gin + OAuth2)?
I’m integrating an internal SSO (OAuth2) into a web application using Gin (Go), and I’m a bit unsure about the right place to create the application session.
The SSO is the only authentication ...
0
votes
0
answers
60
views
Go code using WMI returns inconsistent USB port count; how to reliably get fixed physical USB ports?
I'm trying to get the number of physical USB ports on a Windows machine using Go and WMI. I wrote the following code using ole and oleutil:
func GetUSBCount() (int, error) {
runtime.LockOSThread()
...
2
votes
0
answers
32
views
inlay hints don't work for golang in neovim?
i have hints working for lua, but not for go.
i've already tried a bunch of stuff like several go configs, though it seems like it is a server problem, because Settings: {} is what i get in ...
1
vote
0
answers
31
views
Trouble decrypting CiphertextForRecipient after KMS GenerateDataKey
I'm building a route for my go (gin) server that generates a Data Encryption Key (DEK), following the principle of zero-trust (the backend never sees the plaintext).
Right now, the client generates a ...
1
vote
0
answers
99
views
Heavy duplication when upserting with GORM generics in SQLite
I have several models in my application, which have associations between each other. I'm trying to recursively upsert them, but haven't been able to find a good solution that doesn't extensively rely ...
1
vote
0
answers
77
views
GO annotations do not work.screen does not show anything under {{.User.name}}
I want to use go's objx package to get the UserName of the cookie and pass it to html using annotations, but the screen does not show anything under {{.User.name}}.
--callback--
authCookieValue := ...
3
votes
0
answers
30
views
Why does Milvus Go RowBasedInsertOption conflict with Function-generated sparse vector fields?
I’m using Milvus 2.5 with the Go SDK (v2.5.1) and ran into an issue when inserting data into a collection that uses a Function-defined field together with RowBasedInsertOption.
In my collection schema,...
Advice
1
vote
0
replies
59
views
How to configure settings.json for Python, Vue, and Go in Zed editor on Windows?
I use the Zed editor for development on Windows 11, with my main technology stack being Python, Vue (including JavaScript/TypeScript), and Go. I have been trying to configure settings.json myself, but ...
1
vote
0
answers
131
views
Why is my Go Proxy Server sticking to a single child server when sending requests to certain websites?
I have built a proxy server with this GitHub project (https://github.com/elazarl/goproxy), and this server is accepting requests from the nodejs puppeteer.
The proxy server is listening on the IPv6 ...
0
votes
0
answers
51
views
RPC communications in Mattermost plugins and Apache-APISIX plugins, Is RPC only for Golang - Golang?
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 ...
1
vote
0
answers
112
views
go telnet send string
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. ...
1
vote
0
answers
184
views
Is it possible to set stdin of a process to a pipe and the rest to a TTY device?
I am trying to spawn a process so that I can do the following:
Send text to its standard input and specify EOF by closing the stdin pipe.
Connect the process' stdout and stderr to a TTY device so ...