microservices-demo / user

The users microservice.
http://microservices-demo.github.io/
Apache License 2.0
91 stars 617 forks source link

user service fails to build on golang 1.7 or later #41

Closed ghost closed 7 years ago

ghost commented 7 years ago

golang 1.7 has added the import "context" as a standard package to replace "golang.org/x/net/context"

Thus, if running golang 1.7 or later, the user service will fail to build. To get this to build on golang 1.7, the follow change needs to be made:

Change import "golang.org/x/net/context" to "context" in the following two files: user/api/endpoints.go user/api/transport.go