Skip to content

Commit

Permalink
create util package
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberde committed Feb 23, 2021
1 parent 9c710af commit b2703f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/db/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/daangn/dynamoutil/pkg/config"
"github.com/daangn/dynamoutil/pkg/util"
"github.com/rs/zerolog/log"

. "github.com/logrusorgru/aurora"
Expand Down Expand Up @@ -84,7 +85,7 @@ func Dump(cfg *config.DynamoDBDumpConfig) error {
continue
}

marshaled, err := MarshalDynamo(jsonItem)
marshaled, err := util.MarshalDynamo(jsonItem)
if err != nil {
log.Err(err).Msg("failed to marshal dynamodb object")
continue
Expand Down
2 changes: 1 addition & 1 deletion pkg/db/util.go → pkg/util/util.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package db
package util

import (
"encoding/json"
Expand Down

0 comments on commit b2703f8

Please sign in to comment.