protoc-gen-cli

command
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

protoc-gen-cli is a plugin for the Google protocol buffer compiler to generate Go code. Run it by building this program and putting it in your path with the name

protoc-gen-cli

That word 'cli' at the end becomes part of the option string set for the protocol compiler, so once the protocol compiler (protoc) is installed you can run

protoc --cli_out=:out_directory --go_out=output_directory input_directory/file.proto

to generate vine code for the protocol defined by file.proto. With input that, the output will be written to

output_directory/file.cli.pb.go

The generated code is documented in the package comment for the library.

See the README and documentation is protocol buffers to learn more:

https://developers.google.com/protocol-buffers/

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL