protoc-gen-go-tag

command
v1.1.28 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 4 Imported by: 0

README

protoc-gen-go-tag

Archived, move to protoc-gen-go-tag.

Documentation

Overview

protoc-gen-go-tag 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-tag

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

protoc --go-tag_out=paths=source_relative:. path/to/astFile.proto

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

path/to/astFile.pb.go

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

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

Directories

Path Synopsis
This code is borrowed from https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go
This code is borrowed from https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go

Jump to

Keyboard shortcuts

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