You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tangmingyou accb64f6fd protobuf 4 years ago
cmd protobuf 4 years ago
etc dao login 4 years ago
internal protobuf 4 years ago
message protobuf 4 years ago
tool dao login 4 years ago
.gitignore dao login 4 years ago
README.md protobuf 4 years ago
compiled.js protobuf 4 years ago
go.mod protobuf 4 years ago
go.sum protobuf 4 years ago
protoc.build.bat protobuf 4 years ago
ws.html dao login 4 years ago

README.md

proto 编译 golang

go install github.com/golang/protobuf/protoc-gen-go 
cmd/protoc-3.19.4/bin/protoc.exe --go_out=./ message/game.message

proto 编译 js

npm install -g protobufjs-cli
# js
pbjs -t static-module -w message/jsproto -o compiled.js message/*.proto
# json
pbjs -t json message/*.proto > jsproto.json