/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/ / / / / / / / / / / / / / / / / /
Please use forum https://forum.labstack.com to ask questions!
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/ / / / / / / / / / / / / / / / / /
cannot find package "github.com/labstack/engine/standard
supposed to start server
returns a missing engine/standard error
package main
import (
"github.com/labstack/echo"
"github.com/labstack/engine/standard"
)
func main() {
// Create a new instance of Echo
e := echo.New()
e.GET("/tasks", func(c echo.Context) error { return c.JSON(200, "GET Tasks") })
e.PUT("/tasks", func(c echo.Context) error { return c.JSON(200, "PUT Tasks") })
e.DELETE("/tasks/:id", func(c echo.Context) error { return c.JSON(200, "DELETE Task "+c.Param("id")) })
// Start as a web server
e.Run(standard.New(":8000"))
}
1.8.3
This package existed in version 2. You need to use a package manager to fix the version or use http://gopkg.in/echo.v2. If you are upgrading to Echo v3, you don't need this package.
Most helpful comment
This package existed in version 2. You need to use a package manager to fix the version or use http://gopkg.in/echo.v2. If you are upgrading to Echo v3, you don't need this package.