Debian Codegraph @

debian/manpages/protoc-gen-gogo.1

raw
1 .\" Hey, EMACS: -*- nroff -*-
2 .TH PROTOC-GEN-GOGO "1" "Aug 2013" "protoc-gen-gogo"
3 .SH NAME
4 protoc-gen-gogo \- Go compiler output filter for the protocol buffer
5 compiler
6 .SH SYNOPSIS
7 .TP
8 .B protoc
9 \fI--plugin=protoc-gen-gogo=/usr/bin/protoc-gen-gogo\fR
10 \fI--go_out=gocode\fR
11 \fIinput.proto\fR
12 .TP
13 .B protoc
14 \fI--go_out=gocode\fR
15 \fIinput.proto\fR
16 .SH DESCRIPTION
17 .PP
18 .B protoc-gen-gogo
19 is a filter for the
20 .BR protoc (1)
21 protocol buffer compiler.
22 It takes the protocol buffer format from
23 .BR protoc (1)
24 as input and produces Go code as output which can then be used to
25 encode (marshal) and decode (unmarshal) data in the protocol buffer
26 format specified in its input. The input is typically produced by
27 .BR protoc (1)
28 by taking a .proto input file and converting it to a protocol buffer
29 descriptor format which
30 .B protoc-gen-gogo
31 can then read.
32 If
33 .B protoc-gen-gogo
34 can be found in the regular search path, the
35 .I --plugin
36 flag can be omitted.
37 .SH OPTIONS
38 .B protoc-gen-gogo
39 itself doesn't like options.
40 All input is taken from stdin.
41 If you use the protobuf compiler to invoke protoc-gen-gogo,
42 see
43 .BR protoc (1)
44 for a detailed list of all options.
45 .SH "SEE ALSO"
46 .BR protoc (1) .
47 .SH AUTHOR
48 .B protoc-gen-gogo
49 was mostly written by Rob Pike and David Symonds for The Go Authors.
50 .SH "REPORTING BUGS"
51 Please file any bug in the bug tracker at
52 .I https://code.google.com/p/goprotobuf/issues/list
53 .SH COPYRIGHT
54 .PP
55 Copyright \(co 2010-2013 The Go Authors.
56 All rights reserved.
57 .PP
58 Redistribution and use in source and binary forms, with or without
59 modification, are permitted provided that the following conditions are
60 met:
61 .PP
62 .IP \[bu]
63 Redistributions of source code must retain the above copyright notice,
64 this list of conditions and the following disclaimer.
65 .IP \[bu]
66 Redistributions in binary form must reproduce the above copyright
67 notice, this list of conditions and the following disclaimer in the
68 documentation and/or other materials provided with the distribution.
69 .IP \[bu]
70 Neither the name of Google Inc. nor the names of its contributors may
71 be used to endorse or promote products derived from this software
72 without specific prior written permission.
73 .PP
74 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
75 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
76 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
77 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
78 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
79 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
80 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
81 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
82 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
83 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
84 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.