-
I think there should be something like
if res.StatusCode != http.StatusOK {
after
res, err := c.httpClient.Do(r)
In case the server returns a 400 or a 500, the current code returns…
-
here is the code:
```
package main
import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"log"
"net/http"
"time"
)
func main() {
router := gin.Default()
// CORS for …
-
A wildcard path handler for `/*` does not match an empty path (i.e. `/`). There doesn't seem to be any way to match all paths, including the empty path (since all paths are required to start with `/`)…
-
Per definitions from https://github.com/open-telemetry/opentelemetry-collector/issues/9324
Status | Meaning
-- | --
PermanentError | The component has detected a condition at runtime that will ne…
-
**Describe the bug**
Method names for typescript are not generated according to the annotations and their method names when more than one method uses the same path prefix. The example will make it cl…
srad updated
3 months ago
-
Can i see urs example plix! My is:
```
type mystruct struct {
Num int8 `form:"num" binding:"required"`
}
```
```
// part of handler
err := ctx.ShouldBind(&mystruct)
if err != nil {
…
-
Hi,
I have installed statusok correctly,
But I am having hard time visualizing it in Graphana, can anyone share a template/graphana queries?
I just want to visualize my Get requests response ti…
-
edited a vpop item, went to save, got this error
Output argument "StatusOk" (and possibly others) not assigned a value in the execution with "QSPViewerNew.Application/VirtualPopulationPane/saveBack…
-
+ https://www.bilibili.com/video/BV1TK42147eW/
tangx updated
7 months ago
-
```
// trace info
type TraceInfo struct{
Id_ bson.ObjectId `form:"_id" json:"_id" bson:"_id"`
Search SearchInfo `form:"search" json:"search" bson:"search"`
}
// search
type SearchI…