Back to godoc.org
google.golang.org/grpc/cmd/protoc-gen-go-grpc

Command protoc-gen-go-grpc

v1.0.0
Latest Go to latest

The latest major version is .

Published: Oct 2, 2020 | License: Apache-2.0 | Module: google.golang.org/grpc/cmd/protoc-gen-go-grpc

Overview

protoc-gen-go-grpc is a plugin for the Google protocol buffer compiler to generate Go code. Install it by building this program and making it accessible within your PATH with the name:

protoc-gen-go-grpc

The 'go-grpc' suffix becomes part of the argument for the protocol compiler, such that it can be invoked as:

protoc --go-grpc_out=. path/to/file.proto

This generates Go service definitions for the protocol buffer defined by file.proto. With that input, the output will be written to:

path/to/file_grpc.pb.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier