Echo: cannot find package "github.com/labstack/engine/standard

Created on 3 Aug 2017  路  1Comment  路  Source: labstack/echo

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/ / / / / / / / / / / / / / / / / /

Please use forum https://forum.labstack.com to ask questions!

/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/ / / / / / / / / / / / / / / / / /

Issue Description

cannot find package "github.com/labstack/engine/standard

Checklist

  • [x] Dependencies installed
  • [x] No typos
  • [x] Searched existing issues and docs

Expected behaviour

supposed to start server

Actual behaviour

returns a missing engine/standard error

Steps to reproduce

Working code to debug

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"))
}

Version/commit

1.8.3

question

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

younisshah picture younisshah  路  4Comments

wangxianzhuo picture wangxianzhuo  路  4Comments

absinsekt picture absinsekt  路  4Comments

linux-support picture linux-support  路  3Comments

kyokomi picture kyokomi  路  3Comments