protobuf-go/internal/fieldnum
Joe Tsai ca46d8c924 internal/fieldnum: generate field numbers for the google.protobuf package
Generate field numbers for the well-known types,
so that encoding/jsonpb can benefit from them as well.

This CL fixes internal/cmd/generate-protos, which was silently failing
because the modulePath was not properly initialized. We fix this by
moving it to the start of the init function.

Change-Id: I87637176f29218cffa512b4baa49f39dae924061
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/168497
Reviewed-by: Herbie Ong <herbie@google.com>
2019-03-21 00:57:40 +00:00
..
any_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
api_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
descriptor_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
doc.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
duration_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
empty_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
field_mask_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
source_context_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
struct_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
timestamp_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
type_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
wrappers_gen.go internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00