Skip to content

Commit

Permalink
refactor: optimize cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCai1111 committed Jan 31, 2018
1 parent 0b979c4 commit 5f29f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ var (
func getFiledNamesByJSONKeys(obj interface{}, jsonKeys []string) (map[string]string, error) {
var (
fieldNames = make(map[string]string)
structName = reflect.TypeOf(obj).Name()
fieldTagMap = map[string]string{}
fieldTagMap = make(map[string]string)
structName = reflect.TypeOf(obj).String()
err error
)

Expand Down

0 comments on commit 5f29f24

Please sign in to comment.