@nanaimoinc/protobuf
v1.0.16
Published
- Install brew - Install protoc ```bash go install google.golang.org/protobuf/cmd/protoc-gen-go@latest go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest export GOPATH=$HOME/go export P
Downloads
1
Readme
Installation tips
- Install brew
- Install protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
- Generate protos
make gen
NEW EMPLOYEES - GIT SETUP
Setup SSH keys:
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
git config --global --add url."[email protected]:".insteadOf "https://github.com/"
export GOPRIVATE=github.com/nanaimo-ai
go mod tidy
Also add the environment variable permanenlty to the shell script.
echo 'export GOPRIVATE=github.com/nanaimo-ai' >> ~/.zshrc
source ~/.zshrc