Questions tagged [go-echo]

Echo is a high performance, extensible, minimalist Go web framework. This tag should be used with general questions concerning the Echo framework or any related middleware,

The Echo web framework by LabStack is designed to be minimalist yet high performing.

You can get started by looking at:

144 questions
-1
votes
1 answer

Echo can't use custom context in HTTPErrorHandler

e.Use(func(h echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { cc := c.(*CustomContext) return h(cc) } }) e.HTTPErrorHandler = func(err error, c echo.Context) { cc := c.(*CustomContext) } I set custom…
Lansi
  • 143
  • 2
  • 11
-1
votes
1 answer

How can I get same session in labstack echo session middleware?

Is there the missing config or something else? The main config: The Request handlers:
smark
  • 43
  • 1
  • 8
-2
votes
1 answer

Cast an interface using a pointer of a Slice to iterate its values

Context: Using a custom Binder and Validator in Echo Framework. The binder use a signature of (interface{}, echo.Context), but a pointer is always passed and checked by echo.DefaultBinder. I'm having trouble validating an array of struct for some…
Alex Boutin
  • 157
  • 1
  • 8
-2
votes
1 answer

Golang return file from fly

I have the ECHO framework which should return the file on request, and it's working well func IniExport(c echo.Context) error{ cfg := ini.Empty() if section, err := cfg.NewSection("test_section"); err != nil { return…
Manish Iarhovich
  • 183
  • 1
  • 10
-2
votes
1 answer

Pass an interface{} type with pointer value to an interface{} parameter

I have two function in my code, a parent function with interface{} parameter type and another child function with interface{} parameter type. I called childFunc in parentFunc and assert parent param to *interface{} and pass it to childFunc and at…
-2
votes
1 answer

Create Routing Modules Go/Echo RestAPI

I just started learning Go and want to create my own REST API. The problem is simple: I want to have the routes of my api in a different file for example: routes/users.go that then I include in the "main" function and register those routes. There…
doglover1337
  • 146
  • 4
  • 18
-2
votes
1 answer

Is there a good way to filter requests by IP address with Echo?

I'm developing an API server with the Echo HTTP framework. I woudld like to filter some requests by IP address. Later I can manager these URLs better. It's my code: func filterIP(next echo.HandlerFunc) echo.HandlerFunc { return func(c…
Shaco
  • 11
  • 1
  • 3
-3
votes
2 answers

How to get the xml sent by post in a REST API

I want to build a rest app in which I have to get the values ​​that are sent by post as xml. How is the data recovered? I'm using echo framework.
-3
votes
1 answer

The server doesn't respond anymore after I switch framework Gin to Echo

I used to use Gin(Golang framework) and deploy docker image to GKE. It was working totally fine. But the server doesn't respond anymore when I switched Gin to Echo(it is also Golang framework) I think it is because there is something wrong with port…
anderson
  • 415
  • 1
  • 4
  • 8
1 2 3
9
10