Skip to content

Commit

Permalink
Upgrade version of rflutil to latest (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendc authored Sep 19, 2024
1 parent c04690a commit 2fd91f2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ go get github.com/tiendc/gofn
- [MapOmitCopy](#mapomitcopy)

**Struct**
- [StructToMap / StructToMapEx](#structtomap--structtomapex)
- [StructToMap](#structtomap)
- [ParseTag / ParseTagOf / ParseTagsOf](#parsetag--parsetagof--parsetagsof)

**String**
Expand Down Expand Up @@ -938,9 +938,9 @@ MapOmitCopy(map[int]int{1: 11, 2: 22, 3: 33}, 2, 3, 4) // map[int]int{1: 11}
### Struct
---

#### StructToMap / StructToMapEx
#### StructToMap

Converts struct contents to a map. This function is a shortcut to [rflutil.StructToMap](https://github.com/tiendc/go-rflutil#structtomap--structtomapex).
Converts struct contents to a map. This function is a shortcut to [rflutil.StructToMap](https://github.com/tiendc/go-rflutil#structtomap).

#### ParseTag / ParseTagOf / ParseTagsOf

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/tiendc/gofn
go 1.18

require (
github.com/stretchr/testify v1.8.4
github.com/tiendc/go-rflutil v0.0.0-20231112145832-693b7b74d697
github.com/stretchr/testify v1.9.0
github.com/tiendc/go-rflutil v0.0.0-20240919184150-3c910c4770e2
)

require (
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/tiendc/go-rflutil v0.0.0-20231112145832-693b7b74d697 h1:BYWZUvxBkpnlC4MywWhO1bEch5L6cCc0t5FNVSUjZps=
github.com/tiendc/go-rflutil v0.0.0-20231112145832-693b7b74d697/go.mod h1:nSMBac9C+G4b8nvxSgPZ0rmhrLonJ5ZdknynSKxQhL8=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tiendc/go-rflutil v0.0.0-20240919184150-3c910c4770e2 h1:rn+lV7zG16tc0GCw9hJkdvCOecbGe8Kj33lI8AaJ74g=
github.com/tiendc/go-rflutil v0.0.0-20240919184150-3c910c4770e2/go.mod h1:2nPnVtlbM4w4GOWSmFjKFKl+mhDT7hWgwky4qpRFugo=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
9 changes: 4 additions & 5 deletions struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import (
)

var (
StructToMap = rflutil.StructToMap
StructToMapEx = rflutil.StructToMapEx
ParseTag = rflutil.ParseTag
ParseTagOf = rflutil.ParseTagOf
ParseTagsOf = rflutil.ParseTagsOf
StructToMap = rflutil.StructToMap
ParseTag = rflutil.ParseTag
ParseTagOf = rflutil.ParseTagOf
ParseTagsOf = rflutil.ParseTagsOf
)

0 comments on commit 2fd91f2

Please sign in to comment.