Kratos是bilibili开源的一套Go微服务框架,包含大量微服务相关框架及工具。
名字来源于:《战神》游戏以希腊神话为背景,讲述由凡人成为战神的奎托斯(Kratos)成为战神并展开弑神屠杀的冒险历程。
我们致力于提供完整的微服务研发体验,整合相关框架及工具后,微服务治理相关部分可对整体业务开发周期无感,从而更加聚焦于业务交付。对每位开发者而言,整套Kratos框架也是不错的学习仓库,可以了解和参考到bilibili在微服务方面的技术积累和经验。
Go version>=1.12 and GO111MODULE=on
go get -u github.com/bilibili/kratos/tool/kratos cd $GOPATH/src kratos new kratos-demo
通过 kratos new 会快速生成基于kratos库的脚手架代码,如生成 kratos- demo
kratos new
cd kratos-demo/cmd go build ./cmd -conf ../configs
打开浏览器访问:http://localhost:8000/kratos-demo/start,你会看到输出了Golang 大法好 !!!
Golang 大法好 !!!
快速开始 kratos工具
简体中文
Kratos is under the MIT license. See the LICENSE file for details.
Please report bugs, concerns, suggestions by issues, or join QQ-group 716486124 to discuss problems around source code.