-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to run Hello world #755
Comments
I had the same problem. You need to import "github.com/labstack/echo/middleware" as well. Could somebody update the docs, please? |
You don't need middleware to run this example. Make sure you have set $GOPATH and your project is within it. |
Yes it is. |
|
This is the test : [nlamirault]:~$ cd $GOPATH/src/github.com/nlamirault
[nlamirault]:~/Apps/golang/src/github.com/nlamirault$ mkdir foobar
[nlamirault]:~/Apps/golang/src/github.com/nlamirault$ cd foobar/
[nlamirault]:~/Apps/golang/src/github.com/nlamirault/foobar$ govendor init
[nlamirault]:~/Apps/golang/src/github.com/nlamirault/foobar$ govendor fetch github.com/labstack/[email protected]
[nlamirault]:~/Apps/golang/src/github.com/nlamirault/foobar$ vi main.go
[nlamirault]:~/Apps/golang/src/github.com/nlamirault/foobar$ cat main.go
package main
import (
"net/http"
"github.com/labstack/echo"
)
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
e.Logger.Fatal(e.Start(":1323"))
}
[nlamirault]:~/Apps/golang/src/github.com/nlamirault/foobar$ go run main.go
# github.com/nlamirault/foobar/vendor/github.com/rsc/letsencrypt
vendor/github.com/rsc/letsencrypt/lets.go:674: not enough arguments in call to c.ObtainCertificate
vendor/github.com/rsc/letsencrypt/lets.go:731: undefined: acme.TLSSNI01ChallengeCertDomain
vendor/github.com/rsc/letsencrypt/lets.go:744: undefined: acme.TLSSNI01ChallengeCertDomain |
Signed-off-by: Vishal Rana <[email protected]>
Signed-off-by: Vishal Rana <[email protected]>
Description
Checklist
Expected behaviour
Run the hello world from documentation
Actual behaviour
Steps to reproduce
Working code to debug
Version/commit
The text was updated successfully, but these errors were encountered: