Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

I have a custom type defined as follows: // Package link: https://github.com/shopspring/decimal // type Decimal struct { inner decimal.Decimal } decimal.Decimal wraps math/big.Int internally. ...
0 votes
0 answers
29 views

I am building a CLI tool for docker compose to selectively exclude some containers from running/stopping operations (from a docker-compose.yaml having many containers, user can specify the containers ...
-2 votes
0 answers
66 views

I am trying to create a custom conditional using the contains function, as shown in this code. ### begin ssl_certificate {{ if (contains "health.co.id" $cert) }} ssl_certificate /etc/...
-4 votes
0 answers
59 views

Using casbin RBAC in Go, if I created a new role via enforcer's API, without LoadPolicy() by hand, later when I access some API, will get error: Undefined function g I must call LoadPolicy() by hand,...
Eric's user avatar
  • 25.8k
0 votes
0 answers
80 views

I'd like to add a unit test for Go's http.Server.Shutdown() timing out, but there are no connections held open when the shutdown signal is sent, so it never gets to checking for timeouts, even though ...
-1 votes
1 answer
95 views

I am building a CLI tool for docker compose to selectively exclude some containers from running/stopping operations (from a docker-compose.yaml having many containers, user can specify the containers ...
-2 votes
0 answers
79 views

I've been playing with a very simple TCP server in golang (net.Listener + net.Conn). Within my code I open a TCP connection and pass it to a goroutine to read data from it. In that goroutine, I think, ...
1 vote
0 answers
44 views

The command I executed: swag init -g cmd/server/main.go --parseInternal --parseDependency My project structure: /cmd └─ server/main.go └─ server/wire.go └─ server/wire_gen.go /internal └─ app ...
lee's user avatar
  • 13
2 votes
0 answers
48 views

When scheduling Cloud Tasks in GCP from within a Cloud Run Function I sometimes (~40% of the time) get a 403 error once the Cloud Tasks runs (the second internal Cloud Run Function). I generate an ...
0 votes
0 answers
81 views

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 ...
Pete 's user avatar
  • 1,321
1 vote
1 answer
54 views

I get an error when trying to download private go dependencies from artifact registry via terraform: │ Error: Error waiting to create function: Error waiting for Creating function: Error code 3, ...
Best practices
1 vote
0 replies
39 views

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

I’ve been trying to use the Terratest shell module to execute bash commands, but I haven’t had much success. Documentation appears to be limited, and most references I found were via AI tools. Below ...
PDGamer's user avatar
  • 11
2 votes
0 answers
42 views

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 ...
Bari's user avatar
  • 21
1 vote
0 answers
35 views

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 ...

15 30 50 per page
1
2 3 4 5
...
4967

AltStyle によって変換されたページ (->オリジナル) /