I cannot find the way to execute this code properly with UNIX: package main import ( "time" "github.com/gin-gonic/gin" "net/http" ) type Things struct
Atm, I work on a bunch of distributed microservices in go which I want to trace. I have an "api-gateway" that works via REST and then calls the needed microserv
I am writing some test suites for gin middlewares. I found a solution to test them without having to run a full router engine, by creating a gin context like th
I have a custom gin middleware set up to handle errors but however, it does change to the Content-Type header. package middleware import ( "fmt" "net/
How to reverse proxy web requests for a few routes to another backend in Gin Gonic web golang framework Is there a way to directly forward in the Handle functi
In one of my API's I mostly return a result (let's say paged 50 results) as one whole in an json array like so: [{},{},{},{},{},...] I was wondering if there
I've a pretty simple CRUD for a Task list, and so far I'm able to Create, List all, List by ID and Delete records, bu when I try to update, it gives me the foll
I am developing a REST API based on Gin Go, the endpoint looks something like below: func carsByType(c *gin.Context) { fmt.Println("Go Request in Handler...
I'm setting up testing in golang. I use go-sqlmock to test mysql connection. But sqlmock.NewRows and mock.ExpectQuery does not work well with error. I want to k