Version The version of Phanes must be v0.1.35 or above.
Environment Requirements These environments and tools must be installed properly.
go protoc protoc-gen-go
The GO111MODULE should be enabled.
go env -w GO111MODULE=on
If you faced with network problem (especially you are in China Mainland), please setup GOPROXY
Install Phanes tool You can do it either way.
- go install installation
go install github.com/phanes-o/phanes@latest
- Source code compilation and installation
git clone https://github.com/phanes-o/phanes
cd phanes
make build
Project Creation
phanes new helloworld
cd helloworld
go mod download
Compilation and Running
go generate ./...
phanes proto client hello.proto
phanes proto server hello.proto -t internal/service
phanes run
Project Layout phanes CLI always pull the layout project from GitHub for project creation. The layout project is: