From ed8b558b97d4822f82d3da9a63f687fae0612fd0 Mon Sep 17 00:00:00 2001 From: Gabriel Cataldo Date: Wed, 24 Jan 2024 17:32:35 -0300 Subject: [PATCH] Updated go-helper, go-logger and go-error dependency. --- README.md | 2 +- go.mod | 6 +++--- go.sum | 14 ++++++-------- redis/template.go | 2 +- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index da513e9..5e87aad 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ -[![Project status](https://img.shields.io/badge/version-v1.0.8-vividgreen.svg)](https://github.com/GabrielHCataldo/go-redis-template/releases/tag/v1.0.8) +[![Project status](https://img.shields.io/badge/version-v1.0.9-vividgreen.svg)](https://github.com/GabrielHCataldo/go-redis-template/releases/tag/v1.0.9) [![Go Report Card](https://goreportcard.com/badge/github.com/GabrielHCataldo/go-redis-template)](https://goreportcard.com/report/github.com/GabrielHCataldo/go-redis-template) [![Coverage Status](https://coveralls.io/repos/GabrielHCataldo/go-redis-template/badge.svg?branch=main&service=github)](https://coveralls.io/github/GabrielHCataldo/go-mongo?branch=main) [![Open Source Helpers](https://www.codetriage.com/gabrielhcataldo/go-redis-template/badges/users.svg)](https://www.codetriage.com/gabrielhcataldo/go-mongo) diff --git a/go.mod b/go.mod index 743b9ec..5e8be4d 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/GabrielHCataldo/go-redis-template go 1.21.3 require ( - github.com/GabrielHCataldo/go-errors v1.0.6 - github.com/GabrielHCataldo/go-helper v1.2.7 - github.com/GabrielHCataldo/go-logger v1.1.5 + github.com/GabrielHCataldo/go-errors v1.0.8 + github.com/GabrielHCataldo/go-helper v1.2.9 + github.com/GabrielHCataldo/go-logger v1.1.6 github.com/redis/go-redis/v9 v9.4.0 ) diff --git a/go.sum b/go.sum index 5c2c644..fb78981 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,9 @@ -github.com/GabrielHCataldo/go-errors v1.0.6 h1:EadRykfD/VBbSFZXQgW/N9ZYYLohuP1guo+p0h4tbwQ= -github.com/GabrielHCataldo/go-errors v1.0.6/go.mod h1:D911Qvns9rDmfY+f7Y1JLgIunPbS8ubr+2edLtA8ewU= -github.com/GabrielHCataldo/go-helper v1.2.7 h1:EbYWHHDe/5cPz1M0dF17os910AClJzp/V7xkRytW9y0= -github.com/GabrielHCataldo/go-helper v1.2.7/go.mod h1:+whI36aUg1BfvLpZWJ8j81+d5iPuxl58ApOJqTIliCU= -github.com/GabrielHCataldo/go-logger v1.1.3 h1:E1KIAGaHaNaaeEcHaWwKM6rtRhc/CIrzr0T2qmYB5D4= -github.com/GabrielHCataldo/go-logger v1.1.3/go.mod h1:gbI+lrqSCG/OC6TP8rrC/VRdNEyf5JrvdbR6z+mIoyM= -github.com/GabrielHCataldo/go-logger v1.1.5 h1:a6mb1yV7rdj71zCnKLagQ2YIQNcOadlsEjcUk6PHqLA= -github.com/GabrielHCataldo/go-logger v1.1.5/go.mod h1:vWKwItwUTCPzywbosiUC56ehnAt3k/GFtlm+fmzWm2Y= +github.com/GabrielHCataldo/go-errors v1.0.8 h1:28ryfzyU0fYDNgg+37zZauwnRRMyFSujWpntmuuCx00= +github.com/GabrielHCataldo/go-errors v1.0.8/go.mod h1:ka5NCxa3Ry4TqvJXJMSCl5Vj3QWrdLMNAUXQNSjD9kg= +github.com/GabrielHCataldo/go-helper v1.2.9 h1:GLIj6vwvBHEeGdwPoIaenpxB7C7D/IPmOxrLudhyviY= +github.com/GabrielHCataldo/go-helper v1.2.9/go.mod h1:+whI36aUg1BfvLpZWJ8j81+d5iPuxl58ApOJqTIliCU= +github.com/GabrielHCataldo/go-logger v1.1.6 h1:D1fFmDy+94QtPyuhOz1F6H7jFxnFd5/+rF1iLyt2J0E= +github.com/GabrielHCataldo/go-logger v1.1.6/go.mod h1:Z+bJSxDzm0vLzV93qn+FOPbiQ3XX2JIaSABA0++Z9r0= github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs= github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= diff --git a/redis/template.go b/redis/template.go index c728d0c..a57cf80 100644 --- a/redis/template.go +++ b/redis/template.go @@ -218,7 +218,7 @@ func (t Template) SprintKey(vs ...any) string { for _, v := range vs { s, err := helper.ConvertToString(v) if helper.IsNil(err) { - if helper.IsNotEqual(builder.Len(), 0) { + if helper.IsNotEmpty(builder.Len()) { builder.WriteString(fmt.Sprint(":", s)) } else { builder.WriteString(s)