duxin40 / service-layout

Kratos Service Layout

Home Page:http://go-kratos.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

service-layout

Install Kratos

mkdir $GOPATH/src/github.com/go-kratos/
cd $GOPATH/srcgithub.com/go-kratos/
git clone https://github.com/go-kratos/kratos.git
cd kratos
git checkout v2
go install ./...

Create a project

kratos new helloworld
cd helloworld
kratos proto add api/helloworld/helloworld.proto
kratos proto service api/helloworld/helloworld.proto -t internal/service

make proto
make build
make test

About

Kratos Service Layout

http://go-kratos.dev

License:MIT License


Languages

Language:Go 67.4%Language:Makefile 32.6%