getprotoc

command
v0.0.0-...-5fef39c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

getprotoc is a go:generate generator that downloads a given version of the C++ protoc compiler.

Usage:

getprotoc version

getprotoc takes a single argument: the version of protoc to fetch. GOOS and GOARCH are used to determin the OS and arch. Downloads are placed in $PWD/downloads/$GOOS/$GOARCH/$version.zip. You should probably .gitignore the $PWD/downloads directory.

getprotoc is useless by itself; it should generally be followed by a go-bindata directive that "vendors" a specific zip file.

Jump to

Keyboard shortcuts

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