Skip to content

Commit

Permalink
refactor: move encoding pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Nov 24, 2023
1 parent bb8da25 commit 068beeb
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cmd/resource/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/database/mongodb/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/plugin/networkx/mime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/bool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package primitive
import (
"reflect"

"github.com/siyul-park/uniflow/internal/encoding"
"github.com/siyul-park/uniflow/pkg/encoding"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/float.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/pointer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/shortcut.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/primitive/uint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheme/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/scheme/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 068beeb

Please sign in to comment.