0%

go报错-Cannot-use-ctx-type

go报错 Cannot use ‘ctx’ (type *”github.com/xhs/we-api/vendor/github.com/valyala/fasthttp”.RequestCtx) as the type *”github.com/valyala/fasthttp”.RequestCtx

1
2
// Cannot use 'ctx' (type *"github.com/xhs/we-api/vendor/github.com/valyala/fasthttp".RequestCtx) as the type *"github.com/valyala/fasthttp".RequestCtx

执行 govendor sync -v 解决