PROTOC-GEN-GOGO(1)
β¨ NAME β¨
protoc-gen-gogo β the Go compiler output filter for the protocol buffer compiler, bestie π
πΈ SYNOPSIS πΈ
protoc --plugin=protoc-gen-gogo=/usr/bin/protoc-gen-gogo --go_out=gocode
input.proto
protoc --go_out=gocode input.proto
π¦ DESCRIPTION π¦
okay so picture this: protoc-gen-gogo is a filter for the protoc(1) protocol buffer compiler. Like, it's the middle bestie π
It takes the protocol buffer format from protoc(1) as input, and it produces Go code as output. That Go code can then be used to encode (marshal) and decode (unmarshal) data in the protocol buffer format that was specified in its input. it's giving transformation, it's giving glow-up β¨
The input is typically produced by protoc(1) β it takes a .proto input file and converts it into a protocol buffer descriptor format, which protoc-gen-gogo can then read. no cap.
and here's the cute part: if protoc-gen-gogo can be found in the regular search path, you can just omit the --plugin flag entirely. she'll find her way home π«Ά
π OPTIONS π
ngl, protoc-gen-gogo itself doesn't like options. she's lowkey a no-notes queen. All input is taken from stdin. periodt.
If you use the protobuf compiler to invoke protoc-gen-gogo, then go check out protoc(1) for a detailed list of all the options β that's where the options actually live, bestie π
π SEE ALSO π
π AUTHOR π
protoc-gen-gogo was mostly written by Rob Pike and David Symonds for The Go Authors. icons only, fr fr β
π REPORTING BUGS π
Please file any bug in the bug tracker at https://code.google.com/p/goprotobuf/issues/list
like, if something's broken, tell the girlies in the issue tracker, don't just suffer in silence π
π COPYRIGHT π
Copyright Β© 2010-2013 The Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
fr fr read the whole thing, it's literally the legal vibe check π§
and that's the page, bestie π this one's protoc-gen-gogo, from the General Commands Manual, dated Aug 2013 β mwah, slay, go compile something gorgeous πβ¨π
π¦ where this page comes from
- debian bookworm: gogoprotobuf 1.3.2-3+b3 Β· BSD-3-Clause
- debian trixie: gogoprotobuf 1.3.2-3+b14 Β· BSD-3-Clause
- ubuntu jammy: gogoprotobuf 1.3.2-1 Β· BSD-3-Clause
- ubuntu noble: gogoprotobuf 1.3.2-3build1 Β· BSD-3-Clause
- ubuntu noble: gogoprotobuf 1.3.2-3ubuntu0.24.04.3 Β· BSD-3-Clause
- ubuntu questing: gogoprotobuf 1.3.2-3build1
- ubuntu resolute: gogoprotobuf 1.3.2-3build2 Β· BSD-3-Clause
- ubuntu stonking: gogoprotobuf 1.3.2-3build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms