package handler import "github.com/labstack/echo/v4" type Handler interface { Register(g *echo.Group) } type Router map[string]Handler func (r Router) Register(e *echo.Echo) { for groupName, handlers := range r { handlers.Register(e.Group(groupName)) } }