Skip to content

Latest commit

 

History

History

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 (token-based-authentication/go/server) and execute the following shell command,

go build -i -v -o bin/server

In order to run, Go to Go module root directory location (token-based-authentication/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 (token-based-authentication/go/client) and execute the following shell command,

go build -i -v -o bin/client

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

./bin/client

If you use Go 1.15 or later, add environment variable as follows.

GODEBUG=x509ignoreCN=0 ./bin/client

Additional Information

Update after changing the service definition

go get -u github.com/grpc-up-and-running/samples/ch02/productinfo/go/product_info

Generate Server key and certificate