diff --git a/cmd/resource/scheme.go b/cmd/resource/scheme.go index 3e1d9cda..f1b0f53e 100644 --- a/cmd/resource/scheme.go +++ b/cmd/resource/scheme.go @@ -2,7 +2,7 @@ package resource import ( "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" "github.com/siyul-park/uniflow/pkg/primitive" "github.com/siyul-park/uniflow/pkg/scheme" ) diff --git a/pkg/database/mongodb/encoding.go b/pkg/database/mongodb/encoding.go index 1cb148c4..0d5e65c3 100644 --- a/pkg/database/mongodb/encoding.go +++ b/pkg/database/mongodb/encoding.go @@ -5,8 +5,8 @@ import ( "github.com/iancoleman/strcase" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" "github.com/siyul-park/uniflow/pkg/database" + "github.com/siyul-park/uniflow/pkg/encoding" "github.com/siyul-park/uniflow/pkg/primitive" "go.mongodb.org/mongo-driver/bson" bsonprimitive "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/internal/encoding/decoder.go b/pkg/encoding/decoder.go similarity index 100% rename from internal/encoding/decoder.go rename to pkg/encoding/decoder.go diff --git a/internal/encoding/encoder.go b/pkg/encoding/encoder.go similarity index 100% rename from internal/encoding/encoder.go rename to pkg/encoding/encoder.go diff --git a/internal/encoding/error.go b/pkg/encoding/error.go similarity index 100% rename from internal/encoding/error.go rename to pkg/encoding/error.go diff --git a/internal/encoding/group.go b/pkg/encoding/group.go similarity index 100% rename from internal/encoding/group.go rename to pkg/encoding/group.go diff --git a/internal/encoding/group_test.go b/pkg/encoding/group_test.go similarity index 100% rename from internal/encoding/group_test.go rename to pkg/encoding/group_test.go diff --git a/pkg/plugin/networkx/mime.go b/pkg/plugin/networkx/mime.go index fa708e07..45060808 100644 --- a/pkg/plugin/networkx/mime.go +++ b/pkg/plugin/networkx/mime.go @@ -13,7 +13,7 @@ import ( "net/url" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" "github.com/siyul-park/uniflow/pkg/primitive" ) diff --git a/pkg/primitive/binary.go b/pkg/primitive/binary.go index 90fe04bf..59c49fbd 100644 --- a/pkg/primitive/binary.go +++ b/pkg/primitive/binary.go @@ -6,7 +6,7 @@ import ( "reflect" "github.com/pkg/errors" - encoding2 "github.com/siyul-park/uniflow/internal/encoding" + encoding2 "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/bool.go b/pkg/primitive/bool.go index 95a964ec..4bfa38ac 100644 --- a/pkg/primitive/bool.go +++ b/pkg/primitive/bool.go @@ -4,7 +4,7 @@ import ( "reflect" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/encoding.go b/pkg/primitive/encoding.go index d612007a..71f2f54b 100644 --- a/pkg/primitive/encoding.go +++ b/pkg/primitive/encoding.go @@ -3,7 +3,7 @@ package primitive import ( "reflect" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) var ( diff --git a/pkg/primitive/float.go b/pkg/primitive/float.go index fe73a995..5c3c3ebd 100644 --- a/pkg/primitive/float.go +++ b/pkg/primitive/float.go @@ -4,7 +4,7 @@ import ( "reflect" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/int.go b/pkg/primitive/int.go index c9f8b7b9..bf917c25 100644 --- a/pkg/primitive/int.go +++ b/pkg/primitive/int.go @@ -4,7 +4,7 @@ import ( "reflect" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/map.go b/pkg/primitive/map.go index 06d8767e..fdde0247 100644 --- a/pkg/primitive/map.go +++ b/pkg/primitive/map.go @@ -8,7 +8,7 @@ import ( "github.com/benbjohnson/immutable" "github.com/iancoleman/strcase" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/pointer.go b/pkg/primitive/pointer.go index 5b3d0ae2..b7d10716 100644 --- a/pkg/primitive/pointer.go +++ b/pkg/primitive/pointer.go @@ -4,7 +4,7 @@ import ( "reflect" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) // NewPointerEncoder is encode *T to T. diff --git a/pkg/primitive/shortcut.go b/pkg/primitive/shortcut.go index 2af7e91b..3f4b172f 100644 --- a/pkg/primitive/shortcut.go +++ b/pkg/primitive/shortcut.go @@ -2,7 +2,7 @@ package primitive import ( "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) // NewPointerEncoder is encode Object to Object. diff --git a/pkg/primitive/slice.go b/pkg/primitive/slice.go index 5f9ca066..0fbfb386 100644 --- a/pkg/primitive/slice.go +++ b/pkg/primitive/slice.go @@ -6,7 +6,7 @@ import ( "github.com/benbjohnson/immutable" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/string.go b/pkg/primitive/string.go index 5153f7b8..4492954c 100644 --- a/pkg/primitive/string.go +++ b/pkg/primitive/string.go @@ -5,7 +5,7 @@ import ( "reflect" "github.com/pkg/errors" - encoding2 "github.com/siyul-park/uniflow/internal/encoding" + encoding2 "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/primitive/uint.go b/pkg/primitive/uint.go index 7e30c0fb..fc98dbe2 100644 --- a/pkg/primitive/uint.go +++ b/pkg/primitive/uint.go @@ -4,7 +4,7 @@ import ( "reflect" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" ) type ( diff --git a/pkg/scheme/codec.go b/pkg/scheme/codec.go index c3cce757..9f44ad9e 100644 --- a/pkg/scheme/codec.go +++ b/pkg/scheme/codec.go @@ -2,7 +2,7 @@ package scheme import ( "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" "github.com/siyul-park/uniflow/pkg/node" ) diff --git a/pkg/scheme/scheme.go b/pkg/scheme/scheme.go index 70caa97c..9d0e045d 100644 --- a/pkg/scheme/scheme.go +++ b/pkg/scheme/scheme.go @@ -5,7 +5,7 @@ import ( "sync" "github.com/pkg/errors" - "github.com/siyul-park/uniflow/internal/encoding" + "github.com/siyul-park/uniflow/pkg/encoding" "github.com/siyul-park/uniflow/pkg/node" )