Gokit建立微服务的例子(翻译)

第一原理 让咱们建立一个Go kit 服务,咱们暂时只用一个main.go文件。 git 你的事务逻辑 你的服务从你的事务逻辑开始。在Go kit里,咱们用一个interface来描述一个服务github // StringService provides operations on strings. import "context" type StringService interface {
相关文章
相关标签/搜索