Skip to content

panic error when use wildcard route and not found #162

Closed
@cgyy

Description

@cgyy

This is my code:

package main

import (
"github.com/labstack/echo"
mw "github.com/labstack/echo/middleware"
)

// Handler

func main() {
e := echo.New()
e.Use(mw.Logger())
e.Use(mw.Recover())
e.SetDebug(true)

e.Get("/:id", func(c *echo.Context) error {
    return c.String(200, ":id...")
})

e.Run(":1323")

}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions