我在运行时使用github.com/labstack/echo包做了一个简单的工作我得到了这个错误。
github.com \ labstack \ echo \ echo.go:624:e.AutoTLSManager.HTTPHandler undefined(类型autocert.Manager没有字段或方法HTTPHandler
package main
import "github.com/labstack/echo"
func main() {
e := echo.New()
e.Start(":")
}
答案 0 :(得分:2)
你似乎有一个陈旧的极致/ autocert库。 autocert.Manager目前有这种方法:https://godoc.org/golang.org/x/crypto/acme/autocert#Manager.HTTPHandler我建议
knex: Required configuration option 'client' is missing
。