74,436 questions
-5
votes
0
answers
44
views
Telnet Localhost Unable to Login (Hardcoded Credentials) [closed]
All,
I am doing a case study on the Mirai botnet, and I need to establish a connection to my local CNC server. The CNC server utilizes a MySQL database, which requires a set of credentials (hardcoded ...
0
votes
0
answers
31
views
mysql pagination on join tables [duplicate]
I have tables villas, locations, categories, amenities, villas_amenities and type (table amenity's type)
the relationships are :
villas belongs to one location
villas belongs to one categories
villas ...
1
vote
0
answers
27
views
How to use SET NX for distributed lock in Redis cluser?
I have a Redis cluster with a single shard and 3 nodes in that shard. I am trying to implement a locking mechanism using the SET NX command which returns false if the key is already set, and true if ...
1
vote
1
answer
56
views
Understanding of Go dependencies lookup
I’m trying to understand why go list -mod=readonly -m -json all returns more dependencies than it actually downloads when looking into .mod files from go mod download -x output. Take go.opentelemetry....
-2
votes
0
answers
29
views
config files in golang project layout [closed]
there is golang project which contains a lot of components.
as well as a number of yaml configs.
there is no one-to-one dependency between components and configs. e.g.
componen1 uses config1, config3 ...
0
votes
0
answers
17
views
multipart: NextPart: EOF Error in ServiceController.CreateService, but Test Route in main.go Works
Here's a detailed description for your GitHub issue, incorporating the information we've discussed. This provides context, the problem statement, steps to reproduce, and your observations.
package ...
1
vote
1
answer
34
views
Can GraphQL Endpoint co exist with Rest Endpoints in same Service?
Creating any microservice in kubernetes cluster requires /readiness and /liveness endpoints to detect service state. These htt endpoints would usually be rest endpoints. My application already has few ...
0
votes
0
answers
28
views
How to remove method or line from sonarqube check in Go?
have a correct method to remove unique method or line from check coverage sonar? like //NOSONAR?
I've tried but I wouldn't like to have to use sonar.exclusions= in my sonar-project.properties file
2
votes
1
answer
71
views
Is there a way to increase a Go server timeout for specific endpoints?
We have a monolithic API that (in addition to other endpoints) has a number of reporting endpoints under the /reports prefix. These reporting endpoints all take a while (>2 minutes) to return a ...
1
vote
0
answers
30
views
GRPC-gateway (golang): how to return nulls in json on some fields
I have enpoint that must return a response like
{
"reallyOptionalValue": "string" //must be omitted when empty
"nullableValue": "string or null"
}
my ...
-4
votes
0
answers
55
views
Does for-range loop allocates memory for every iteration? [duplicate]
Ex1.
for k, v := range a {
foo(k, v)
}
Ex2.
for k := range a {
foo(k, a[k])
}
Is there a difference in memory usage and allocations between ex1 and ex2? More specifically: is v variable ...
0
votes
0
answers
41
views
Not able to delete task from queue using golang [closed]
I am trying to delete the task from the queue after retry exhausted it will move to archived state, so from archived state I want to delete the task from queue. But in my queueMon UI task is showing ...
-1
votes
0
answers
49
views
Cant import btcutil (golang)
im currenty on a project and i try to import btc util but it says
go get github.com/btcsuite/btcutil
go: github.com/btcsuite/btcutil imports
github.com/btcsuite/btcd/btcec: cannot find module ...
-1
votes
0
answers
40
views
Create function that receives as parameter multiple functions with any signature [duplicate]
I am tinkering with Go and I was wondering if there is a way to do this:
func Chain(v ...Pair[GenericFunc, ...GenericArgs]){...}
func GenerateArgs() []any {...}
func AsStrings(slice []any) []string {.....
2
votes
1
answer
34
views
Mismatched Nonce on Server Side Apple App Attest
I am currently trying to learn how to implement Apple's App Attest in my apps and am using Go for my backend server. I found this guide which explains that I need to verify that a specific set of ...