Lines Matching +full:go +full:- +full:version
1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
5 // The protoc-gen-go binary is a protoc plugin to generate Go code for
9 // https://protobuf.dev/reference/go/go-generated.
19 gengo "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo"
21 "google.golang.org/protobuf/internal/version"
24 const genGoDocURL = "https://protobuf.dev/reference/go/go-generated"
25 const grpcDocURL = "https://grpc.io/docs/languages/go/quickstart/#regenerate-grpc-code"
28 if len(os.Args) == 2 && os.Args[1] == "--version" {
29 fmt.Fprintf(os.Stdout, "%v %v\n", filepath.Base(os.Args[0]), version.String())
32 if len(os.Args) == 2 && os.Args[1] == "--help" {
45 …return errors.New("protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to gen…