Skip to content

Commit

Permalink
chore(utils): rename helper to utils (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
flc1125 authored Jan 5, 2024
1 parent 0e7f2a0 commit 23c9901
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cache/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/go-kratos-ecosystem/components/v2/helper"
"github.com/go-kratos-ecosystem/components/v2/utils"
)

type Repository interface {
Expand Down Expand Up @@ -79,7 +79,7 @@ func (r *repository) Remember(
return err
}

return helper.ValueOf(v, dest)
return utils.ValueOf(v, dest)
}

return r.Get(ctx, key, dest)
Expand Down
2 changes: 1 addition & 1 deletion helper/helper.go β†’ utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package helper
package utils

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion helper/helper_test.go β†’ utils/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package helper
package utils

import (
"errors"
Expand Down

0 comments on commit 23c9901

Please sign in to comment.