Parse golang data structure into proto3.
go get github.com/wy-z/tproto/...
Or
import "github.com/wy-z/tproto/tproto" # see cmd/tproto/cli.go
NAME:
tproto - Parse golang data structure into proto3.
USAGE:
tproto [global options] command [command options] [arguments...]
VERSION:
1.2.3
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--package PKG, -p PKG package path PKG (default: ".")
--expressions EXPRS, --exprs EXPRS (any-of required) type expressions, seperated by ',' EXPRS
--decorator DECORATOR, -d DECORATOR (any-of required) parse package with decorator DECORATOR
--proto-package PP, --pp PP (required) proto package PP
--proto-file PF, --pf PF load messages from proto file PF
--json-tag, --jt don't ignore json tag
--help, -h show help
--version, -v print the version
tproto -p github.com/wy-z/tproto/samples -exprs BasicTypes,NormalStruct -pp samples
Or
tproto -p github.com/wy-z/tproto/samples -pp samples BasicTypes NormalStruct
see github.com/wy-z/tproto/samples/source
go get -u github.com/jteeuwen/go-bindata/...
go generate ./samples && go test -v ./tproto