Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ inputs:
runs:
using: "composite"
steps:
- name: Get Go version
id: go-version
shell: bash
run: echo "go-version=$(sed -ne '/^toolchain /s/^toolchain go//p' go.mod)" >> $GITHUB_OUTPUT
- id: go-setup
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version: ${{ steps.go-version.outputs.go-version }}
check-latest: true
go-version-file: go.mod
cache: ${{ inputs.cache }}
7 changes: 3 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: ./.github/actions/setup-go
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
uses: golangci/golangci-lint-action@v9
with:
version: v2.4.0

version: v2.6.1
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: ./.github/actions/setup-go
- name: Run Go tests with coverage
run: |
go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/vuln-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: ./.github/actions/setup-go
- name: Install OSV Scanner
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module go.strv.io/net

go 1.23.0

toolchain go1.25.0
toolchain go1.25.4

require (
github.com/99designs/gqlgen v0.17.78
Expand Down
2 changes: 1 addition & 1 deletion http/param/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ In this example, using chi to access path parameters that has a `{id}` wildcard

```
parsedInput := MyInputStruct{}
param.DefaultParser().PathParamFunc(chi.URLParam).Parse(request, &parsedInput)
param.DefaultParser().WithPathParamFunc(chi.URLParam).Parse(request, &parsedInput)
```