I've a simple golang web application, everything in main package, where http handlers are methods of an App struct embedding a DB pointer type
I would like to create a map, but I am unsure of the syntax. The map[string][]byte data type is giving me trouble, because I think that the e
Following code throws a compilation error cannot use ExampleProps (variable of type Props[Example]) as Props[Generic] value in return statement // Abstract ty
I have these 'structures' type Results struct { Gender string `json:"gender"` Name struct { First string `json:"first"` Last string `
Client-side code tlsconf := &tls.Config{InsecureSkipVerify: true} creds := credentials.NewTLS(tlsconf) opts = append(opts, grpc.WithTransportCredentials(cre
I have a channel that emits events. I'd like to set up an "oscillometer" on top of this channel, i.e. some sort of a "frequency counter" that gets constantly up
I'm not quite sure if which of the following approaches is the better approach to create a controller in kubernetes however I know that: I don't want to create
I'm generating a JWT and sending back to the user as a cookie. I see the response cookie in the network, but the brower isn't storing the cookie, which effectiv
I have a struct type InputData struct { SomeNumber int `json:"someNumber"` SomeText string `json:"someText"` } I do json.Unmarshal my http reque
I'm trying to implement pagination while selecting records from CosmosDB using cosmosapi package. The azure documentation states that continuation tokens never
I found links on process engine Configuration https://docs.camunda.org/manual/7.16/reference/deployment-descriptors/tags/process-engine/ But how to use this in
How do I convert into to its ASCII? In java it's System.out.println((char)(49)); //gives 1 I tried a := '42' fmt.Println(rune(a)) I get more than one character
I am trying to install the mockgen package on go, but I keep receiving a permission denied without knowing why: go install github.com/golang/mock/[email protected]
I am rewriting in Go a home-grade program of mine that was previously in Python, learning on the way. As I reconsider whole sections of the code, it would be gr
I installed a Go program from GitHub and when I run it, I get the error, panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare
I was working in a microservice to create subscriptions in Stripe. One of the fields is listed as a float64 where I set it up as a float in the .proto file. Thi
When I read this opensource code. I have two questions about the two functions: func listenTCP() { for { conn, err := tcpListener.Accept() i
I am new to InfluxDB and trying to do query in my local InfluxDB using Go client. The parameterised version of this doesn't seem to work as intended and they me
I am receiving the following error from vscode when i try to edit a go file: "Error loading workspace: You are outside of a module and outside of $GOPATH/src. I
type Person struct { Name string `json:"name" xml:"name" form:"name"` Pass string `json:"pass" xml:"pass" form:"pass"` } app.Post("/", func(c *fiber.Ct