mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
build(deps): bump github.com/ggwhite/go-masker from 1.0.9 to 1.1.0
Bumps [github.com/ggwhite/go-masker](https://github.com/ggwhite/go-masker) from 1.0.9 to 1.1.0. - [Release notes](https://github.com/ggwhite/go-masker/releases) - [Commits](https://github.com/ggwhite/go-masker/compare/v1.0.9...v1.1.0) --- updated-dependencies: - dependency-name: github.com/ggwhite/go-masker dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
65b8c1a767
commit
dc2f151eb4
2
go.mod
2
go.mod
@@ -19,7 +19,7 @@ require (
|
||||
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
|
||||
github.com/egirna/icap-client v0.1.1
|
||||
github.com/gabriel-vasile/mimetype v1.4.3
|
||||
github.com/ggwhite/go-masker v1.0.9
|
||||
github.com/ggwhite/go-masker v1.1.0
|
||||
github.com/go-chi/chi/v5 v5.0.10
|
||||
github.com/go-chi/cors v1.2.1
|
||||
github.com/go-chi/render v1.0.3
|
||||
|
||||
4
go.sum
4
go.sum
@@ -1125,8 +1125,8 @@ github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcP
|
||||
github.com/gdexlab/go-render v1.0.1 h1:rxqB3vo5s4n1kF0ySmoNeSPRYkEsyHgln4jFIQY7v0U=
|
||||
github.com/gdexlab/go-render v1.0.1/go.mod h1:wRi5nW2qfjiGj4mPukH4UV0IknS1cHD4VgFTmJX5JzM=
|
||||
github.com/getkin/kin-openapi v0.13.0/go.mod h1:WGRs2ZMM1Q8LR1QBEwUxC6RJEfaBcD0s+pcEVXFuAjw=
|
||||
github.com/ggwhite/go-masker v1.0.9 h1:9mKJzhLwJN1E5ekqNMk2ppP9ntWubIGtrUNV9wRouZo=
|
||||
github.com/ggwhite/go-masker v1.0.9/go.mod h1:xnTRHwrIU9FtBADwEjUC5Dy/BVedvoTxyOE7/d3CNwY=
|
||||
github.com/ggwhite/go-masker v1.1.0 h1:kN/KIvktu2U+hd3KWrSlLj7xBGD1iBfc9/xdbVgFbRc=
|
||||
github.com/ggwhite/go-masker v1.1.0/go.mod h1:xnTRHwrIU9FtBADwEjUC5Dy/BVedvoTxyOE7/d3CNwY=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
|
||||
github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
|
||||
|
||||
3
vendor/github.com/ggwhite/go-masker/README.md
generated
vendored
3
vendor/github.com/ggwhite/go-masker/README.md
generated
vendored
@@ -64,10 +64,11 @@ func main() {
|
||||
|ID |MID |id |mask last 4 digits of ID number |
|
||||
|CreditCard |MCreditCard |credit |mask 6 digits from the 7'th digit |
|
||||
|Struct |MStruct |struct |mask the struct |
|
||||
|URL |MURL |url |mask the password field if present, eg http://admin:mysecretpassword@localhost:1234/uri |
|
||||
|
||||
## Mask the `String`
|
||||
|
||||
`String` methomd requires two parameters, a mask type CONST and a string:
|
||||
`String` method requires two parameters, a mask type CONST and a string:
|
||||
``` golang
|
||||
package main
|
||||
|
||||
|
||||
3
vendor/github.com/ggwhite/go-masker/masker.go
generated
vendored
3
vendor/github.com/ggwhite/go-masker/masker.go
generated
vendored
@@ -125,6 +125,9 @@ func (m *Masker) Struct(s interface{}) (interface{}, error) {
|
||||
}
|
||||
|
||||
for i := 0; i < selem.NumField(); i++ {
|
||||
if !selem.Type().Field(i).IsExported() {
|
||||
continue
|
||||
}
|
||||
mtag := selem.Type().Field(i).Tag.Get(tagName)
|
||||
if len(mtag) == 0 {
|
||||
tptr.Elem().Field(i).Set(selem.Field(i))
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -795,7 +795,7 @@ github.com/gabriel-vasile/mimetype/internal/magic
|
||||
# github.com/gdexlab/go-render v1.0.1
|
||||
## explicit
|
||||
github.com/gdexlab/go-render/render
|
||||
# github.com/ggwhite/go-masker v1.0.9
|
||||
# github.com/ggwhite/go-masker v1.1.0
|
||||
## explicit; go 1.17
|
||||
github.com/ggwhite/go-masker
|
||||
# github.com/go-acme/lego/v4 v4.4.0
|
||||
|
||||
Reference in New Issue
Block a user