-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
go get github.com/valyala/fasthttp compile errors #5
Comments
what go version do you have - type |
go version go1.4.2 darwin/amd64 |
Your issue is your go version, the error is Download the latest |
Actually that brings up the point that this library should explicitly state what go version it was built on / required to run on. |
Explicitly stated in readme that fasthttp supports only go1.5+. Older versions won't be supported, since their standard library miss useful functions and I have no desire writing workarounds for them :) See the initial bug report from @kngu9 for the list of missing functions. |
I seem to be having problems when I am trying to fetch the package. This is the error I am getting:
github.com/valyala/fasthttp
src/github.com/valyala/fasthttp/bytesconv.go:53: date.In(gmtLocation).AppendFormat undefined (type time.Time has no field or method AppendFormat)
src/github.com/valyala/fasthttp/header.go:1125: undefined: bytes.LastIndexByte
src/github.com/valyala/fasthttp/header.go:1450: r.Discard undefined (type *bufio.Reader has no field or method Discard)
src/github.com/valyala/fasthttp/http.go:430: undefined: io.CopyBuffer
src/github.com/valyala/fasthttp/uri.go:221: undefined: bytes.LastIndexByte
src/github.com/valyala/fasthttp/uri.go:233: undefined: bytes.LastIndexByte
The text was updated successfully, but these errors were encountered: