diff --git a/README.md b/README.md index 607f9b1..4ae0468 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ MongoDB Template -[![Project status](https://img.shields.io/badge/version-v1.1.8-vividgreen.svg)](https://github.com/GabrielHCataldo/go-mongo-template/releases/tag/v1.1.8) +[![Project status](https://img.shields.io/badge/version-v1.1.9-vividgreen.svg)](https://github.com/GabrielHCataldo/go-mongo-template/releases/tag/v1.1.9) [![Go Report Card](https://goreportcard.com/badge/github.com/GabrielHCataldo/go-mongo-template)](https://goreportcard.com/report/github.com/GabrielHCataldo/go-mongo-template) [![Coverage Status](https://coveralls.io/repos/GabrielHCataldo/go-mongo-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-mongo-template/badges/users.svg)](https://www.codetriage.com/gabrielhcataldo/go-mongo) diff --git a/go.mod b/go.mod index 30553f7..3975528 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,9 @@ module github.com/GabrielHCataldo/go-mongo-template go 1.21.3 require ( - github.com/GabrielHCataldo/go-errors v1.1.1 - github.com/GabrielHCataldo/go-helper v1.3.5 - github.com/GabrielHCataldo/go-logger v1.2.3 - github.com/iancoleman/orderedmap v0.3.0 + github.com/GabrielHCataldo/go-errors v1.1.2 + github.com/GabrielHCataldo/go-helper v1.3.7 + github.com/GabrielHCataldo/go-logger v1.2.4 go.mongodb.org/mongo-driver v1.13.1 ) @@ -17,6 +16,7 @@ require ( github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/validator/v10 v10.17.0 // indirect github.com/golang/snappy v0.0.4 // indirect + github.com/iancoleman/orderedmap v0.3.0 // indirect github.com/klassmann/cpfcnpj v0.0.0-20200907140233-a595c5fd8de1 // indirect github.com/klauspost/compress v1.17.4 // indirect github.com/leekchan/accounting v1.0.0 // indirect diff --git a/go.sum b/go.sum index 11dd3a4..d52f09f 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,9 @@ -github.com/GabrielHCataldo/go-errors v1.1.1 h1:cbEJIfWRk44843wE8eVpyvr9F7zOn/AHD8xozF/RUkM= -github.com/GabrielHCataldo/go-errors v1.1.1/go.mod h1:rrwIP14EEGJ0N8BUpxuwHNM8auO5ZsVj9jGEj442ibo= -github.com/GabrielHCataldo/go-helper v1.3.5 h1:H8BOYT5mkfMExWuyzp4guetI8cjQ7idyhyCsJsym6iw= -github.com/GabrielHCataldo/go-helper v1.3.5/go.mod h1:+whI36aUg1BfvLpZWJ8j81+d5iPuxl58ApOJqTIliCU= -github.com/GabrielHCataldo/go-logger v1.2.1 h1:5pKq4449safXvGR5rYkq7Op2lGgqeDR4B87MTkwZaGY= -github.com/GabrielHCataldo/go-logger v1.2.1/go.mod h1:Q7+M9m9gu1MtgGiFkoYOHtobLLM/kJCPZVhszIJtsJ0= -github.com/GabrielHCataldo/go-logger v1.2.2 h1:+CFRBha2Pr7mwHpQrPI+4i+XX8J2WSFo7bNotZg7E8U= -github.com/GabrielHCataldo/go-logger v1.2.2/go.mod h1:Q7+M9m9gu1MtgGiFkoYOHtobLLM/kJCPZVhszIJtsJ0= -github.com/GabrielHCataldo/go-logger v1.2.3 h1:qkmmluuxsi5e2XZw6X4eU+fSr/cdlO/DvXxFKSGxH/k= -github.com/GabrielHCataldo/go-logger v1.2.3/go.mod h1:Q7+M9m9gu1MtgGiFkoYOHtobLLM/kJCPZVhszIJtsJ0= +github.com/GabrielHCataldo/go-errors v1.1.2 h1:pzfegYVLH6+7pUzymcSU2HreUWiahGTJCOz+FMtgqyQ= +github.com/GabrielHCataldo/go-errors v1.1.2/go.mod h1:tJH0y1gLoR8uJS5SeuMpBzmcasZpI00j/PnH4HXTHpE= +github.com/GabrielHCataldo/go-helper v1.3.7 h1:aAUdFNJJyx6YCx9q4+1qaO/jmBkztDwwZiLtnip0kcI= +github.com/GabrielHCataldo/go-helper v1.3.7/go.mod h1:+whI36aUg1BfvLpZWJ8j81+d5iPuxl58ApOJqTIliCU= +github.com/GabrielHCataldo/go-logger v1.2.4 h1:a0IrcAdBa0dh4UUvQEy2kGbif3gGzpvjmPA4nIJOEVA= +github.com/GabrielHCataldo/go-logger v1.2.4/go.mod h1:1Vn/557fErplbuV+1jT/5U4Xi6/8+6cyZaj8niSv2uA= github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/mongo/main_test.go b/mongo/main_test.go index 25d105f..0780964 100644 --- a/mongo/main_test.go +++ b/mongo/main_test.go @@ -308,9 +308,9 @@ type testEmptyStruct struct { func TestMain(t *testing.M) { initMongoTemplate() - //clearCollection() + clearCollection() t.Run() - //clearCollection() + clearCollection() disconnectMongoTemplate() } diff --git a/mongo/template_test.go b/mongo/template_test.go index 9961c09..85c0d32 100644 --- a/mongo/template_test.go +++ b/mongo/template_test.go @@ -329,6 +329,7 @@ func TestTemplateFindPageable(t *testing.T) { t.Log("err expected:", err) } else { var destContent []testStruct + _ = v.Decode(destContent) _ = v.Content.Decode(destContent) _ = v.Content.Decode(&destContent) logger.Info("result pageable:", v)