Joe Tsai aa432c0868 cmd/protoc-gen-go: fix generation of enum defaults
Previously, this call strconv.FormatInt with base 32,
when the intention is to call it with base 10.

Change-Id: I31cdd2415b3a80936cdcdeb5612a486204404ecb
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/331149
Trust: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Damien Neil <dneil@google.com>
2021-06-27 06:07:42 +00:00

21 lines
432 B
Protocol Buffer

// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
syntax = "proto2";
package goproto.proto.enums;
option go_package = "google.golang.org/protobuf/internal/testprotos/enums";
enum Enum {
DEFAULT = 1337;
ZERO = 0;
ONE = 1;
ELEVENT = 11;
SEVENTEEN = 17;
THIRTYSEVEN = 37;
SIXTYSEVEN = 67;
NEGATIVE = -1;
}