From af2e036cd5256932e85132384e2f282a85329a98 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 23 Mar 2023 13:31:48 -0600 Subject: [PATCH] internal/generator: move package to internal Updates #37 --- cmd/protoc-gen-go-pulsar/main.go | 2 +- features/fastreflection/clear.go | 2 +- features/fastreflection/descriptors.go | 2 +- features/fastreflection/fast_plugin.go | 2 +- features/fastreflection/get.go | 2 +- features/fastreflection/has.go | 2 +- features/fastreflection/list.go | 2 +- features/fastreflection/map.go | 2 +- features/fastreflection/mutable.go | 2 +- features/fastreflection/new_field.go | 2 +- features/fastreflection/proto_marshal.go | 2 +- features/fastreflection/proto_message.go | 2 +- features/fastreflection/proto_size.go | 2 +- features/fastreflection/proto_unmarshal.go | 2 +- features/fastreflection/range.go | 2 +- features/fastreflection/set.go | 2 +- features/fastreflection/type.go | 2 +- features/fastreflection/which_oneof.go | 2 +- features/protoc/feature.go | 2 +- features/protoc/main.go | 2 +- {generator => internal/generator}/LICENSE | 0 {generator => internal/generator}/features.go | 0 {generator => internal/generator}/generatedfile.go | 0 {generator => internal/generator}/generator.go | 0 {generator => internal/generator}/helpers.go | 0 25 files changed, 20 insertions(+), 20 deletions(-) rename {generator => internal/generator}/LICENSE (100%) rename {generator => internal/generator}/features.go (100%) rename {generator => internal/generator}/generatedfile.go (100%) rename {generator => internal/generator}/generator.go (100%) rename {generator => internal/generator}/helpers.go (100%) diff --git a/cmd/protoc-gen-go-pulsar/main.go b/cmd/protoc-gen-go-pulsar/main.go index 8fc27ae..ac1954e 100644 --- a/cmd/protoc-gen-go-pulsar/main.go +++ b/cmd/protoc-gen-go-pulsar/main.go @@ -8,7 +8,7 @@ import ( _ "github.com/cosmos/cosmos-proto/features/fastreflection" _ "github.com/cosmos/cosmos-proto/features/protoc" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/compiler/protogen" diff --git a/features/fastreflection/clear.go b/features/fastreflection/clear.go index a47cea5..8cbf7f4 100644 --- a/features/fastreflection/clear.go +++ b/features/fastreflection/clear.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/descriptors.go b/features/fastreflection/descriptors.go index 54ecea2..8c6f6ee 100644 --- a/features/fastreflection/descriptors.go +++ b/features/fastreflection/descriptors.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/reflect/protoreflect" "github.com/cosmos/cosmos-proto/features/fastreflection/copied" diff --git a/features/fastreflection/fast_plugin.go b/features/fastreflection/fast_plugin.go index db50a0a..88da8a9 100644 --- a/features/fastreflection/fast_plugin.go +++ b/features/fastreflection/fast_plugin.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" ) diff --git a/features/fastreflection/get.go b/features/fastreflection/get.go index ce34047..3976a02 100644 --- a/features/fastreflection/get.go +++ b/features/fastreflection/get.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/has.go b/features/fastreflection/has.go index 64c9d96..ae46f8d 100644 --- a/features/fastreflection/has.go +++ b/features/fastreflection/has.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/list.go b/features/fastreflection/list.go index 9d21648..afe2bc1 100644 --- a/features/fastreflection/list.go +++ b/features/fastreflection/list.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/features/fastreflection/map.go b/features/fastreflection/map.go index 0bec823..0c03e8f 100644 --- a/features/fastreflection/map.go +++ b/features/fastreflection/map.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/features/fastreflection/mutable.go b/features/fastreflection/mutable.go index 637be52..bac33ae 100644 --- a/features/fastreflection/mutable.go +++ b/features/fastreflection/mutable.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/new_field.go b/features/fastreflection/new_field.go index fa5ca73..1cf89e1 100644 --- a/features/fastreflection/new_field.go +++ b/features/fastreflection/new_field.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/proto_marshal.go b/features/fastreflection/proto_marshal.go index 0fe4f97..773e302 100644 --- a/features/fastreflection/proto_marshal.go +++ b/features/fastreflection/proto_marshal.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/encoding/protowire" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/features/fastreflection/proto_message.go b/features/fastreflection/proto_message.go index 7210ed7..c350dd1 100644 --- a/features/fastreflection/proto_message.go +++ b/features/fastreflection/proto_message.go @@ -3,7 +3,7 @@ package fastreflection import ( "fmt" "github.com/cosmos/cosmos-proto/features/fastreflection/copied" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" ) diff --git a/features/fastreflection/proto_size.go b/features/fastreflection/proto_size.go index e8e7e4d..acab67d 100644 --- a/features/fastreflection/proto_size.go +++ b/features/fastreflection/proto_size.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/encoding/protowire" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/features/fastreflection/proto_unmarshal.go b/features/fastreflection/proto_unmarshal.go index 76c13f0..6c78bb3 100644 --- a/features/fastreflection/proto_unmarshal.go +++ b/features/fastreflection/proto_unmarshal.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/encoding/protowire" "google.golang.org/protobuf/reflect/protoreflect" diff --git a/features/fastreflection/range.go b/features/fastreflection/range.go index 30d073e..8f1a4a5 100644 --- a/features/fastreflection/range.go +++ b/features/fastreflection/range.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/set.go b/features/fastreflection/set.go index d271221..0fe2309 100644 --- a/features/fastreflection/set.go +++ b/features/fastreflection/set.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/reflect/protoreflect" ) diff --git a/features/fastreflection/type.go b/features/fastreflection/type.go index 77935fa..7f3faf5 100644 --- a/features/fastreflection/type.go +++ b/features/fastreflection/type.go @@ -2,7 +2,7 @@ package fastreflection import ( "fmt" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" ) diff --git a/features/fastreflection/which_oneof.go b/features/fastreflection/which_oneof.go index e47aac6..3802ec6 100644 --- a/features/fastreflection/which_oneof.go +++ b/features/fastreflection/which_oneof.go @@ -1,7 +1,7 @@ package fastreflection import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" ) diff --git a/features/protoc/feature.go b/features/protoc/feature.go index 29a24e3..909b5bf 100644 --- a/features/protoc/feature.go +++ b/features/protoc/feature.go @@ -1,7 +1,7 @@ package protoc import ( - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "google.golang.org/protobuf/compiler/protogen" ) diff --git a/features/protoc/main.go b/features/protoc/main.go index 3cc5a1a..f846ba2 100644 --- a/features/protoc/main.go +++ b/features/protoc/main.go @@ -8,7 +8,7 @@ package protoc import ( "fmt" "github.com/cosmos/cosmos-proto/features/protoc/genid" - "github.com/cosmos/cosmos-proto/generator" + "github.com/cosmos/cosmos-proto/internal/generator" "go/ast" "go/parser" "go/token" diff --git a/generator/LICENSE b/internal/generator/LICENSE similarity index 100% rename from generator/LICENSE rename to internal/generator/LICENSE diff --git a/generator/features.go b/internal/generator/features.go similarity index 100% rename from generator/features.go rename to internal/generator/features.go diff --git a/generator/generatedfile.go b/internal/generator/generatedfile.go similarity index 100% rename from generator/generatedfile.go rename to internal/generator/generatedfile.go diff --git a/generator/generator.go b/internal/generator/generator.go similarity index 100% rename from generator/generator.go rename to internal/generator/generator.go diff --git a/generator/helpers.go b/internal/generator/helpers.go similarity index 100% rename from generator/helpers.go rename to internal/generator/helpers.go