go mod init
go get -u github.com/micro/go-micro
go get -u github.com/satori/go.uuid
go get -u github.com/dgrijalva/jwt-go
go get -u github.com/jinzhu/gorm
go get -u gopkg.in/mgo.v2
https://www.yinzige.com/2018/05/10/microservices-part-1-introduction-and-consignment-service/
https://blog.dingkewz.com/post/tech/go_ewan_microservices_in_golang_part_1/
https://github.com/micro/examples/tree/master/greeter
git clone https://github.com/micro/examples
go run examples/greeter/srv/main.go
go run examples/greeter/api/api.go
micro api --handler=api
curl "http://localhost:8080/greeter/say/hello?name=jack"
{
"message": "Hello jack"
}
go run examples/greeter/srv/main.go
go run examples/greeter/api/rpc/rpc.go
micro api
curl -H 'Content-Type: application/json' -d '{"name": "jack"}' http://localhost:8080/greeter/hello
{
"msg": "Hello jack"
}