Documentation ¶
Overview ¶
A commandline tool for generating rpc code by service methods.
This tool can generate rpc client code ,rpc arg model for specific Go project dir. Usage :
$gorpc [options]
Available options:
-client generate rpc client code. -d specific go project service dir (default ./service/) -model generate rpc arg model code. -o specific rpc client code output file. (default ./rpc/client/client.go) -m specific rpc arg model output file. (default ./model/rpc.go) -s print code to stdout.
Example:
$ cd $GOPATH/relation $ gorpc such command will generate rpc client code by functions of ./service/* and write code to $GOPATH/relation/rpc/client/client.go
Click to show internal directories.
Click to hide internal directories.