You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.8
Does this issue reproduce with the latest release?
Not on 1.9
What operating system and processor architecture are you using (go env)?
macOS 10.13.2, amd64
What did you do?
Running "swagger generate spec -o ./swagger.json" to generate swagger/openapi output.
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
No problems with Go HTTP2
What did you see instead?
/Users/justin/.gvm/pkgsets/go1.8/global/src/golang.org/x/net/http2/go19.go:14:2: invalid operation: s (variable of type *net/http.Server) has no field or method RegisterOnShutdown
The text was updated successfully, but these errors were encountered:
net/http.Server.RegisterOnShutdown was added in Go 1.9, so I am confused by your issue. You are also mixing in x/net/http2, which is a different package.
mikioh
changed the title
x/net: Golang 1.8 incompatibility: *net/http.Server has no field or method RegisterOnShutdown
x/net/http2: Golang 1.8 incompatibility: *net/http.Server has no field or method RegisterOnShutdown
Jan 5, 2018
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.8
Does this issue reproduce with the latest release?
Not on 1.9
What operating system and processor architecture are you using (
go env
)?macOS 10.13.2, amd64
What did you do?
Running "swagger generate spec -o ./swagger.json" to generate swagger/openapi output.
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
No problems with Go HTTP2
What did you see instead?
/Users/justin/.gvm/pkgsets/go1.8/global/src/golang.org/x/net/http2/go19.go:14:2: invalid operation: s (variable of type *net/http.Server) has no field or method RegisterOnShutdown
The text was updated successfully, but these errors were encountered: