Hello.

Decided to use a web framework for go - labstack / echo

I make a request through the front, and get a JS object.

I derive it, for example, as follows:

func editBannerHandler(c echo.Context) error { //It works m := echo.Map{} if err := c.Bind(&m); err != nil { return err } fmt.Println(m) return c.JSON(200, m) } 

but I can't figure out how to extract this object, and PUT it as JSON on a specific API (For example: htttp: exampleapi.net/getjsonfromvov).

  • Not quite clear question. If you need to make a request, why don't you use http.Client ? - Ainar-G

0