stackctl
install
- release binary
- go get
go get -u github.com/stack-labs/stack/util/stackctl
example
stackctl new github.com/stack-labs/example --alias example -type service --gopath
stackctl new github.com/stack-labs/example-api --alias example -type api --gopath
- 修改 FIXME 内容
- 替换
example-api
中path/to/service/proto/example
为github.com/stack-labs/example/proto/example
- 本地环境用
go.mod
用replace
添加github.com/stack-labs/example
包
module github.com/stack-labs/example-api
go 1.14
replace github.com/stack-labs/example v1.0.0 => ../example
require (
github.com/stack-labs/example v1.0.0
)