Açıklama Yok

dcsunny 8e3a5a259a init 3 yıl önce
cmd 8e3a5a259a init 3 yıl önce
configs 8e3a5a259a init 3 yıl önce
internal 8e3a5a259a init 3 yıl önce
.gitignore 8e3a5a259a init 3 yıl önce
Dockerfile 8e3a5a259a init 3 yıl önce
Jenkinsfile 8e3a5a259a init 3 yıl önce
LICENSE 8e3a5a259a init 3 yıl önce
Makefile 8e3a5a259a init 3 yıl önce
README.md 8e3a5a259a init 3 yıl önce
build.sh 8e3a5a259a init 3 yıl önce
generate.go 8e3a5a259a init 3 yıl önce
go.mod 8e3a5a259a init 3 yıl önce
go.work.build 8e3a5a259a init 3 yıl önce
start.sh 8e3a5a259a init 3 yıl önce

README.md

Kratos Project Template

Install Kratos

go get -u github.com/go-kratos/kratos/cmd/kratos/v2@latest

Create a service

# create a template project
kratos new helloworld

cd helloworld
# Add a proto template
kratos proto add api/helloworld/helloworld.proto
# Generate the source code of service by proto file
kratos proto server api/helloworld/helloworld.proto -t internal/service

go generate ./...
go build -o ./bin/ ./...
./bin/helloworld -conf ./configs

Automated Initialization (wire)

# install wire
go get github.com/google/wire/cmd/wire

# generate wire
cd cmd/server
wire