|
| 1 | +/* |
| 2 | +Copyright 2015 The Kubernetes Authors All rights reserved. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +// protoc-gen-go is a plugin for the Google protocol buffer compiler to generate |
| 18 | +// Go code. Run it by building this program and putting it in your path with |
| 19 | +// the name |
| 20 | +// protoc-gen-gogo |
| 21 | +// That word 'gogo' at the end becomes part of the option string set for the |
| 22 | +// protocol compiler, so once the protocol compiler (protoc) is installed |
| 23 | +// you can run |
| 24 | +// protoc --gogo_out=output_directory input_directory/file.proto |
| 25 | +// to generate Go bindings for the protocol defined by file.proto. |
| 26 | +// With that input, the output will be written to |
| 27 | +// output_directory/file.pb.go |
| 28 | +// |
| 29 | +// The generated code is documented in the package comment for |
| 30 | +// the library. |
| 31 | +// |
| 32 | +// See the README and documentation for protocol buffers to learn more: |
| 33 | +// https://developers.google.com/protocol-buffers/ |
| 34 | + |
| 35 | +package main |
| 36 | + |
| 37 | +import ( |
| 38 | + "github.com/gogo/protobuf/vanity/command" |
| 39 | +) |
| 40 | + |
| 41 | +func main() { |
| 42 | + command.Write(command.Generate(command.Read())) |
| 43 | +} |
0 commit comments