diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f8bbc92..e5fed27 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,12 +10,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] - go: ['1.18.x', '1.20.x'] + go: ['1.18.x', '1.22.x'] steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@v4 diff --git a/events.go b/events.go index 84f8b08..4385286 100644 --- a/events.go +++ b/events.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2019-2024 caixw +// // SPDX-License-Identifier: MIT // Package events 提供了简单的事件发布订阅功能 diff --git a/events_test.go b/events_test.go index af72d86..9068c5e 100644 --- a/events_test.go +++ b/events_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2019-2024 caixw +// // SPDX-License-Identifier: MIT package events @@ -7,7 +9,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) var ( diff --git a/go.mod b/go.mod index ef2d55b..b26343b 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/issue9/events -require github.com/issue9/assert/v3 v3.0.5 +require github.com/issue9/assert/v4 v4.1.1 go 1.18 diff --git a/go.sum b/go.sum index 45d127e..e03cb71 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/issue9/assert/v3 v3.0.5 h1:Mlz/4v2Ph6ZDm3Fk3A1jhitH4M/2dkHeHNKe7tTZdH8= -github.com/issue9/assert/v3 v3.0.5/go.mod h1:yft/uaskRpwQTyBT3n1zRl91SR1wNlO4fLZHzOa4bdM= +github.com/issue9/assert/v4 v4.1.1 h1:OhPE8SB8n/qZCNGLQa+6MQtr/B3oON0JAVj68k8jJlc= +github.com/issue9/assert/v4 v4.1.1/go.mod h1:v7qDRXi7AsaZZNh8eAK2rkLJg5/clztqQGA1DRv9Lv4=