Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

I’m looking for documentation that lists the specific FIPS 140-3 approved parameters for each algorithm in the Go Cryptographic Module (v1.0.0, CAVP A6650). Specifically, parameters such as: AES: ...
Sanjay Shiradwade's user avatar
Advice
0 votes
3 replies
23 views

I’m looking to understand both: A brute force solution An optimal solution (in terms of time and space complexity) The input is a slice of integers, for example: nums := []int{10, 5, 20, 8, 15} ...
Jamil Noyda's user avatar
  • 3,677
0 votes
1 answer
103 views

I want to compare 2 structs in golang and consider them equal if all fields with a value are equal while ignoring fields which are undefined in either struct. Take the following example: type MyType ...
mat's user avatar
  • 1,853
0 votes
0 answers
66 views

Is there a secure/blessed/correct way to pass params into a golang Gorm SQL query ORDER BY clause? This is what I want to do: tx.Order(`array_position(?, id)`, modelIDs) The modelID slice is sorted ...
Shiny's user avatar
  • 129
0 votes
1 answer
49 views

I'm trying to programmatically create a native Google BigQuery connection in AWS Glue using the AWS SDK for Go v2 (github.com/aws/aws-sdk-go-v2/service/glue). According to the AWS docs (Glue 4.0+ ...
Shubham Dixit's user avatar
1 vote
0 answers
31 views

When supplying base endpoint in aws config for sqs-client it is fails to get attributes or messages with 400 status code. cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion(...
aman goyal's user avatar
-1 votes
1 answer
73 views

I am analyzing Go's HTTP request handling, specifically how ParseMultipartForm works. I noticed that when I parse a multipart form, Go populates the exact same data into three separate fields in the ...
Diwash Pandey's user avatar
Advice
1 vote
2 replies
73 views

I am making a Go package. It is located, on GitHub, at https://github.com/eliotttak/go-ansi-colors. I would want that the Go module name would be github.com/eliotttak/ansicolors, because the go part ...
eliotttak's user avatar
0 votes
0 answers
40 views

I want to add Go Templ command as a VSCode task, so I can run it with a hotkey I added .vscode/tasks.json to my project's folder that looks like this: { "version": "2.0.0", ...
Sten Petrov's user avatar
  • 11.1k
-3 votes
0 answers
89 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. ...
Prakash P's user avatar
  • 4,144
1 vote
1 answer
51 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 ...
Abhimanyu Sharma's user avatar
-2 votes
0 answers
74 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/...
strike_noir's user avatar
  • 4,220
-4 votes
1 answer
146 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
141 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 ...
theory's user avatar
  • 10k
-1 votes
1 answer
102 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 ...
Abhimanyu Sharma's user avatar

15 30 50 per page
1
2 3 4 5
4967