Skip to content

Commit c9f3c99

Browse files
authored
Merge pull request #39 from strvcom/release/0.8.0
release: v0.8.0
2 parents ff6e18e + 38b6f94 commit c9f3c99

File tree

9 files changed

+29
-35
lines changed

9 files changed

+29
-35
lines changed

.github/actions/setup-go/action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@ inputs:
1111
runs:
1212
using: "composite"
1313
steps:
14-
- id: go-version
15-
run: |
16-
echo "Go version is set to ${{ inputs.go-version }}"
17-
echo "GO_VERSION=${{ inputs.go-version }}" >> $GITHUB_ENV
18-
shell: bash
19-
name: Setup Go
2014
- id: go-setup
21-
uses: actions/setup-go@v4
15+
uses: actions/setup-go@v5
2216
with:
2317
go-version-file: go.mod
2418
check-latest: true
2519
cache: ${{ inputs.cache }}
26-

.github/workflows/lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
contents: read
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
- name: Install Go
2222
uses: ./.github/actions/setup-go
2323
- name: Run golangci-lint
24-
uses: golangci/golangci-lint-action@v3
24+
uses: golangci/golangci-lint-action@v6
2525
with:
26-
version: v1.56.1
26+
version: v1.62.0

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
contents: read
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Install Go
2121
uses: ./.github/actions/setup-go
2222
- name: Run Go tests with coverage
2323
run: |
2424
go test -race -coverprofile=coverage.out -covermode=atomic ./...
2525
- name: Upload coverage to Codecov
26-
uses: codecov/codecov-action@v3
26+
uses: codecov/codecov-action@v4
2727
with:
2828
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/vuln-scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
contents: read
1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Install Go
2121
uses: ./.github/actions/setup-go
2222
- name: Install govulncheck

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ linters:
2424
- goconst
2525
- gocritic
2626
- gofmt
27-
- gomnd
27+
- mnd
2828
- gosec
2929
- misspell
3030
- nilerr

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ How to release a new version:
44
- Manually release new version.
55

66
## [Unreleased]
7+
8+
## [0.8.0] - 2024-11-14
79
### Added
810
- package `http/param`: can parse into embedded structs.
911

@@ -85,7 +87,8 @@ How to release a new version:
8587
### Added
8688
- Added Changelog.
8789

88-
[Unreleased]: https://github.com/strvcom/strv-backend-go-net/compare/v0.7.1...HEAD
90+
[Unreleased]: https://github.com/strvcom/strv-backend-go-net/compare/v0.8.0...HEAD
91+
[0.8.0]: https://github.com/strvcom/strv-backend-go-net/compare/v0.7.1...v0.8.0
8992
[0.7.1]: https://github.com/strvcom/strv-backend-go-net/compare/v0.7.0...v0.7.1
9093
[0.7.0]: https://github.com/strvcom/strv-backend-go-net/compare/v0.6.2...v0.7.0
9194
[0.6.2]: https://github.com/strvcom/strv-backend-go-net/compare/v0.6.1...v0.6.2

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module go.strv.io/net
22

3-
go 1.22
3+
go 1.23.3
44

55
require (
6-
github.com/99designs/gqlgen v0.17.45
7-
github.com/go-chi/chi/v5 v5.0.12
6+
github.com/99designs/gqlgen v0.17.56
7+
github.com/go-chi/chi/v5 v5.1.0
88
github.com/google/uuid v1.6.0
99
github.com/stretchr/testify v1.9.0
10-
github.com/vektah/gqlparser/v2 v2.5.11
11-
go.strv.io/time v0.2.0
10+
github.com/vektah/gqlparser/v2 v2.5.19
11+
go.strv.io/time v0.2.1
1212
)
1313

1414
require (
@@ -17,7 +17,7 @@ require (
1717
github.com/kr/pretty v0.3.1 // indirect
1818
github.com/pmezard/go-difflib v1.0.0 // indirect
1919
github.com/rogpeppe/go-internal v1.12.0 // indirect
20-
github.com/sosodev/duration v1.2.0 // indirect
20+
github.com/sosodev/duration v1.3.1 // indirect
2121
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
2222
gopkg.in/yaml.v3 v3.0.1 // indirect
2323
)

go.sum

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/99designs/gqlgen v0.17.45 h1:bH0AH67vIJo8JKNKPJP+pOPpQhZeuVRQLf53dKIpDik=
2-
github.com/99designs/gqlgen v0.17.45/go.mod h1:Bas0XQ+Jiu/Xm5E33jC8sES3G+iC2esHBMXcq0fUPs0=
1+
github.com/99designs/gqlgen v0.17.56 h1:+J42ARAHvnysH6klO9Wq+tCsGF32cpAgU3SyF0VRJtI=
2+
github.com/99designs/gqlgen v0.17.56/go.mod h1:rmB6vLvtL8uf9F9w0/irJ5alBkD8DJvj35ET31BKbtY=
33
github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8=
44
github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
55
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ=
@@ -11,8 +11,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
1111
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1212
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g=
1313
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
14-
github.com/go-chi/chi/v5 v5.0.12 h1:9euLV5sTrTNTRUU9POmDUvfxyj6LAABLUcEWO+JJb4s=
15-
github.com/go-chi/chi/v5 v5.0.12/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
14+
github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw=
15+
github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
1616
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
1717
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
1818
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
@@ -30,18 +30,16 @@ github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU
3030
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
3131
github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
3232
github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
33-
github.com/sosodev/duration v1.2.0 h1:pqK/FLSjsAADWY74SyWDCjOcd5l7H8GSnnOGEB9A1Us=
34-
github.com/sosodev/duration v1.2.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
33+
github.com/sosodev/duration v1.3.1 h1:qtHBDMQ6lvMQsL15g4aopM4HEfOaYuhWBw3NPTtlqq4=
34+
github.com/sosodev/duration v1.3.1/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
3535
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
3636
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
37-
github.com/vektah/gqlparser/v2 v2.5.11 h1:JJxLtXIoN7+3x6MBdtIP59TP1RANnY7pXOaDnADQSf8=
38-
github.com/vektah/gqlparser/v2 v2.5.11/go.mod h1:1rCcfwB2ekJofmluGWXMSEnPMZgbxzwj6FaZ/4OT8Cc=
39-
go.strv.io/time v0.2.0 h1:RgCpABq+temfp8+DLM2zqsdimnKpktOSPduUghM8ZIk=
40-
go.strv.io/time v0.2.0/go.mod h1:B/lByAO3oACN3uLOXQaB64cKhkVIMoZjnZBhADFNbFY=
37+
github.com/vektah/gqlparser/v2 v2.5.19 h1:bhCPCX1D4WWzCDvkPl4+TP1N8/kLrWnp43egplt7iSg=
38+
github.com/vektah/gqlparser/v2 v2.5.19/go.mod h1:y7kvl5bBlDeuWIvLtA9849ncyvx6/lj06RsMrEjVy3U=
39+
go.strv.io/time v0.2.1 h1:obREp9amvObE2dLpdXByMIz0TaZeBDODvSSV5u0szgo=
40+
go.strv.io/time v0.2.1/go.mod h1:+719M6ltN7ON7qC7Ieb1FLyrBcdEWu8Z/czdtB3kZ98=
4141
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
4242
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
4343
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
44-
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
45-
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
4644
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
4745
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

http/param/param.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func unmarshalPrimitiveValue(text string, dest reflect.Value) error {
309309
// Example: resolveTagValueWithModifier("query=param_name", "query") returns "param_name", true.
310310
func (p Parser) resolveTagValueWithModifier(tagValue string, tagModifier string) (string, bool) {
311311
splits := strings.Split(tagValue, "=")
312-
//nolint:gomnd // 2 not really that magic number - one value before '=', one after
312+
//nolint:mnd // 2 not really that magic number - one value before '=', one after
313313
if len(splits) != 2 {
314314
return "", false
315315
}

0 commit comments

Comments
 (0)