Skip to content

Latest commit

 

History

History

go

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

ProductInfo Service and Client - Go Implementation

Building and Running Service

In order to build, Go to Go module root directory location (productinfo/go/server) and execute the following shell command,

go build -v -o bin/server

In order to run, Go to Go module root directory location (productinfo/go/server) and execute the following shell command,

./bin/server

Building and Running Client

In order to build, Go to Go module root directory location (productinfo/go/client) and execute the following shell command,

go build -v -o bin/client

In order to run, Go to Go module root directory location (productinfo/go/client) and execute the following shell command,

./bin/client

Additional Information

Generate Server and Client side code

Pre-generated stub file is included in the go project. If you need to generate the stub files please use the below command from the root directory(inside productinfo directory)

protoc -I proto/ proto/product_info.proto --go_out=plugins=grpc:go/server/ecommerce