diff --git a/internal/cmd/generate-types/impl.go b/internal/cmd/generate-types/impl.go index c64284ab..6909994c 100644 --- a/internal/cmd/generate-types/impl.go +++ b/internal/cmd/generate-types/impl.go @@ -8,11 +8,11 @@ import ( "text/template" ) -func generateImplEncode() string { - return mustExecute(implEncodeTemplate, ProtoKinds) +func generateImplCodec() string { + return mustExecute(implCodecTemplate, ProtoKinds) } -var implEncodeTemplate = template.Must(template.New("").Parse(` +var implCodecTemplate = template.Must(template.New("").Parse(` {{- /* IsZero is an expression testing if 'v' is the zero value. */ -}} diff --git a/internal/cmd/generate-types/main.go b/internal/cmd/generate-types/main.go index d6bb972a..09e6a8af 100644 --- a/internal/cmd/generate-types/main.go +++ b/internal/cmd/generate-types/main.go @@ -38,7 +38,7 @@ func main() { chdirRoot() writeSource("internal/filedesc/desc_list_gen.go", generateDescListTypes()) - writeSource("internal/impl/encode_gen.go", generateImplEncode()) + writeSource("internal/impl/codec_gen.go", generateImplCodec()) writeSource("proto/decode_gen.go", generateProtoDecode()) writeSource("proto/encode_gen.go", generateProtoEncode()) writeSource("proto/size_gen.go", generateProtoSize()) diff --git a/internal/impl/encode_gen.go b/internal/impl/codec_gen.go similarity index 100% rename from internal/impl/encode_gen.go rename to internal/impl/codec_gen.go diff --git a/internal/impl/encode_map.go b/internal/impl/codec_map.go similarity index 100% rename from internal/impl/encode_map.go rename to internal/impl/codec_map.go diff --git a/internal/impl/encode_map_go111.go b/internal/impl/codec_map_go111.go similarity index 100% rename from internal/impl/encode_map_go111.go rename to internal/impl/codec_map_go111.go diff --git a/internal/impl/encode_map_go112.go b/internal/impl/codec_map_go112.go similarity index 100% rename from internal/impl/encode_map_go112.go rename to internal/impl/codec_map_go112.go diff --git a/internal/impl/encode_reflect.go b/internal/impl/codec_reflect.go similarity index 100% rename from internal/impl/encode_reflect.go rename to internal/impl/codec_reflect.go diff --git a/internal/impl/codec_field.go b/internal/impl/codec_tables.go similarity index 100% rename from internal/impl/codec_field.go rename to internal/impl/codec_tables.go diff --git a/internal/impl/encode_unsafe.go b/internal/impl/codec_unsafe.go similarity index 100% rename from internal/impl/encode_unsafe.go rename to internal/impl/codec_unsafe.go