From b0e452d774935f21356496b06d49f59e8f7c8801 Mon Sep 17 00:00:00 2001 From: caixw Date: Wed, 28 Feb 2024 14:34:34 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20assert=20?= =?UTF-8?q?=E8=87=B3=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- blogit.go | 2 ++ blogit_test.go | 4 ++- build.sh | 1 + builder/archive.go | 2 ++ builder/atom.go | 2 ++ builder/builder.go | 2 ++ builder/builder_test.go | 6 +++-- builder/fs.go | 2 ++ builder/fs_test.go | 4 ++- builder/post.go | 2 ++ builder/profile.go | 2 ++ builder/robots.go | 2 ++ builder/rss.go | 2 ++ builder/site.go | 2 ++ builder/sitemap.go | 2 ++ builder/tag.go | 2 ++ builder/template.go | 2 ++ builder/template_test.go | 4 ++- cmd/blogit/blogit.go | 2 ++ go.mod | 18 ++++++------- go.sum | 36 +++++++++++++------------- internal/cmd/build.go | 2 ++ internal/cmd/build_test.go | 4 ++- internal/cmd/cmd.go | 2 ++ internal/cmd/cmd_test.go | 4 ++- internal/cmd/console/console.go | 2 ++ internal/cmd/console/locale.go | 2 ++ internal/cmd/console/visiter.go | 2 ++ internal/cmd/create/create.go | 2 ++ internal/cmd/create/init.go | 2 ++ internal/cmd/create/init_test.go | 4 ++- internal/cmd/create/post.go | 2 ++ internal/cmd/create/post_test.go | 4 ++- internal/cmd/drafts.go | 2 ++ internal/cmd/drafts_test.go | 4 ++- internal/cmd/preview/options.go | 2 ++ internal/cmd/preview/options_test.go | 4 ++- internal/cmd/preview/preview.go | 2 ++ internal/cmd/serve/options.go | 2 ++ internal/cmd/serve/options_test.go | 4 ++- internal/cmd/serve/serve.go | 2 ++ internal/cmd/styles.go | 2 ++ internal/cmd/styles_test.go | 4 ++- internal/cmd/version.go | 2 ++ internal/cmd/version_test.go | 4 ++- internal/data/archive.go | 2 ++ internal/data/archive_test.go | 4 ++- internal/data/data.go | 2 ++ internal/data/data_test.go | 4 ++- internal/data/jsonld.go | 2 ++ internal/data/post.go | 2 ++ internal/data/post_test.go | 4 ++- internal/data/profile.go | 2 ++ internal/data/robots.go | 2 ++ internal/data/robots_test.go | 4 ++- internal/data/rss.go | 2 ++ internal/data/sitemap.go | 2 ++ internal/data/tag.go | 2 ++ internal/data/tag_test.go | 4 ++- internal/data/theme.go | 2 ++ internal/filesystem/fileserver.go | 2 ++ internal/filesystem/fileserver_test.go | 6 +++-- internal/filesystem/filesystem.go | 2 ++ internal/filesystem/filesystem_test.go | 4 ++- internal/loader/archive.go | 2 ++ internal/loader/archive_test.go | 4 ++- internal/loader/config.go | 2 ++ internal/loader/config_test.go | 4 ++- internal/loader/is.go | 2 ++ internal/loader/loader.go | 2 ++ internal/loader/loader_test.go | 4 ++- internal/loader/md.go | 2 ++ internal/loader/post.go | 2 ++ internal/loader/post_test.go | 4 ++- internal/loader/profile.go | 2 ++ internal/loader/profile_test.go | 4 ++- internal/loader/robots.go | 2 ++ internal/loader/robots_test.go | 4 ++- internal/loader/sitemap.go | 2 ++ internal/loader/sitemap_test.go | 4 ++- internal/loader/tag.go | 2 ++ internal/loader/tag_test.go | 4 ++- internal/loader/theme.go | 2 ++ internal/loader/theme_test.go | 4 ++- internal/testdata/testdata.go | 2 ++ internal/vars/vars.go | 2 ++ internal/vars/version.go | 2 ++ internal/vars/version_test.go | 4 ++- locales/locales.go | 2 ++ 92 files changed, 235 insertions(+), 62 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5d8f142..d673dfa 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 242df73..57bdd54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: setup Go uses: actions/setup-go@v4 with: - go-version: 1.21.x + go-version: 1.22.x id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b8f12e..95baedd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] - go: ['1.21.x', '1.18.x'] + go: ['1.22.x', '1.18.x'] steps: diff --git a/blogit.go b/blogit.go index 9325313..16ea8e5 100644 --- a/blogit.go +++ b/blogit.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT //go:generate web locale -l=und -m -f=yaml ./ diff --git a/blogit_test.go b/blogit_test.go index ba88077..ef33fb7 100644 --- a/blogit_test.go +++ b/blogit_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package blogit @@ -5,7 +7,7 @@ package blogit import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/version" "github.com/caixw/blogit/v2/internal/filesystem" diff --git a/build.sh b/build.sh index 2f86264..a9851ad 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2020-2024 caixw # SPDX-License-Identifier: MIT cd $(dirname $0) || exit diff --git a/builder/archive.go b/builder/archive.go index 8f8147a..2bb4879 100644 --- a/builder/archive.go +++ b/builder/archive.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/atom.go b/builder/atom.go index ddfaf9d..3cb6f0f 100644 --- a/builder/atom.go +++ b/builder/atom.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/builder.go b/builder/builder.go index 015a7c5..0479156 100644 --- a/builder/builder.go +++ b/builder/builder.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package builder 提供编译成 HTML 的相关功能 diff --git a/builder/builder_test.go b/builder/builder_test.go index 278dd25..3c65845 100644 --- a/builder/builder_test.go +++ b/builder/builder_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder @@ -7,8 +9,8 @@ import ( "net/http" "testing" - "github.com/issue9/assert/v3" - "github.com/issue9/assert/v3/rest" + "github.com/issue9/assert/v4" + "github.com/issue9/assert/v4/rest" "github.com/caixw/blogit/v2/internal/testdata" "github.com/caixw/blogit/v2/internal/vars" diff --git a/builder/fs.go b/builder/fs.go index ab6c755..887ec65 100644 --- a/builder/fs.go +++ b/builder/fs.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/fs_test.go b/builder/fs_test.go index 101caf2..197e5d9 100644 --- a/builder/fs_test.go +++ b/builder/fs_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder @@ -10,7 +12,7 @@ import ( "path" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/filesystem" ) diff --git a/builder/post.go b/builder/post.go index 220e3df..8b5ce98 100644 --- a/builder/post.go +++ b/builder/post.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/profile.go b/builder/profile.go index 2025e70..bf8c0ae 100644 --- a/builder/profile.go +++ b/builder/profile.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/robots.go b/builder/robots.go index 51589da..3c662e2 100644 --- a/builder/robots.go +++ b/builder/robots.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/rss.go b/builder/rss.go index 95e6177..9ff10c5 100644 --- a/builder/rss.go +++ b/builder/rss.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/site.go b/builder/site.go index e6602a6..115e4c7 100644 --- a/builder/site.go +++ b/builder/site.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/sitemap.go b/builder/sitemap.go index 295453a..9d3560f 100644 --- a/builder/sitemap.go +++ b/builder/sitemap.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/tag.go b/builder/tag.go index 4d92042..f7e5d6f 100644 --- a/builder/tag.go +++ b/builder/tag.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/template.go b/builder/template.go index 3426be6..d4612a8 100644 --- a/builder/template.go +++ b/builder/template.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder diff --git a/builder/template_test.go b/builder/template_test.go index 2d80fbb..615d05f 100644 --- a/builder/template_test.go +++ b/builder/template_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package builder @@ -5,7 +7,7 @@ package builder import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestStripTags(t *testing.T) { diff --git a/cmd/blogit/blogit.go b/cmd/blogit/blogit.go index ce974fe..7ed7982 100644 --- a/cmd/blogit/blogit.go +++ b/cmd/blogit/blogit.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // 静态博客网站生成工具 diff --git a/go.mod b/go.mod index e9fd95b..22c4324 100644 --- a/go.mod +++ b/go.mod @@ -5,16 +5,16 @@ go 1.18 require ( github.com/alecthomas/chroma/v2 v2.12.0 github.com/fsnotify/fsnotify v1.7.0 - github.com/issue9/assert/v3 v3.1.0 - github.com/issue9/cmdopt v0.13.0 - github.com/issue9/errwrap v0.3.1 - github.com/issue9/localeutil v0.26.1 - github.com/issue9/sliceutil v0.15.0 - github.com/issue9/term/v3 v3.2.5 - github.com/issue9/version v1.0.7 + github.com/issue9/assert/v4 v4.1.1 + github.com/issue9/cmdopt v0.13.1 + github.com/issue9/errwrap v0.3.2 + github.com/issue9/localeutil v0.26.4 + github.com/issue9/sliceutil v0.15.1 + github.com/issue9/term/v3 v3.2.6 + github.com/issue9/version v1.0.8 github.com/mdigger/goldmark-toc v0.0.0-20191225162753-7bc0e0d778c3 github.com/psanford/memfs v0.0.0-20230130182539-4dbf7e3e865e - github.com/yuin/goldmark v1.6.0 + github.com/yuin/goldmark v1.7.0 github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc github.com/yuin/goldmark-meta v1.1.0 golang.org/x/text v0.14.0 @@ -25,6 +25,6 @@ require ( github.com/dlclark/regexp2 v1.10.0 // indirect github.com/gosimple/slug v1.9.0 // indirect github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be // indirect - golang.org/x/sys v0.15.0 // indirect + golang.org/x/sys v0.17.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 9ae57dd..d946e2a 100644 --- a/go.sum +++ b/go.sum @@ -17,20 +17,20 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/gosimple/slug v1.9.0 h1:r5vDcYrFz9BmfIAMC829un9hq7hKM4cHUrsv36LbEqs= github.com/gosimple/slug v1.9.0/go.mod h1:AMZ+sOVe65uByN3kgEyf9WEBKBCSS+dJjMX9x4vDJbg= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= -github.com/issue9/assert/v3 v3.1.0 h1:oxLFXS7QnBKI4lB31pRoYO96yErkWAJtR7iv+LNjAPg= -github.com/issue9/assert/v3 v3.1.0/go.mod h1:yft/uaskRpwQTyBT3n1zRl91SR1wNlO4fLZHzOa4bdM= -github.com/issue9/cmdopt v0.13.0 h1:mLaa7R94a6MbCf+1GIt4YgFDW6fdt/nnL0AjgKgf8jQ= -github.com/issue9/cmdopt v0.13.0/go.mod h1:l//IcugcBwX+vCc2KrgC4ylU6rEzhjQyxno7hWoLCDE= -github.com/issue9/errwrap v0.3.1 h1:8g4lYJaGnoiXyZ1oZyH/7zPDGgw5RNiE9Q6ri9kE6Z8= -github.com/issue9/errwrap v0.3.1/go.mod h1:HLR0e5iimd2aJXM9YrThOsRj3/6lMtk77lVp7zyvJ4E= -github.com/issue9/localeutil v0.26.1 h1:4T4508SlTKcKkNjaj6Fer+ZyMVOU+UBUu4DWk/Zq8+I= -github.com/issue9/localeutil v0.26.1/go.mod h1:JU83qFEhBswkZdLc3bWS719ku5QY1/mqU8vhsP9Znsw= -github.com/issue9/sliceutil v0.15.0 h1:E6Xnl3FY5h0ZGNzyx1VEFAfGdParaq/BkX1QQR0uFwI= -github.com/issue9/sliceutil v0.15.0/go.mod h1:n9meV7AamDhmehOBuV4GrxW3yw7O1cZmLx3Xizg1bps= -github.com/issue9/term/v3 v3.2.5 h1:kAC5ynwTiqe/63E3JAV2Cb7eVxVno+L7VsmYgJyyLw0= -github.com/issue9/term/v3 v3.2.5/go.mod h1:Qm0PvOTggMvZUEsAmpiBr/uBaq5Qh/w4LQJcvznfAjc= -github.com/issue9/version v1.0.7 h1:uKcWyuEWbcFdPeqmR2ivuy4/CsB0la0xkk3gxlMjxZs= -github.com/issue9/version v1.0.7/go.mod h1:YTMKrK5SRLf0xgXfCPy0T/vpjTP52gjor67fsEVcnMU= +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= +github.com/issue9/cmdopt v0.13.1 h1:VA/Hgd92NBbZyHjZx1xcRCMhoc+XjI1LWhiuZkOZ0VU= +github.com/issue9/cmdopt v0.13.1/go.mod h1:7lnF45Ush0boi4/nDjeSDYV5lZfoOzp3jm+biJr0f4g= +github.com/issue9/errwrap v0.3.2 h1:7KEme9Pfe75M+sIMcPCn/DV90wjnOcRbO4DXVAHj3Fw= +github.com/issue9/errwrap v0.3.2/go.mod h1:KcCLuUGiffjooLCUjL89r1cyO8/HT/VRcQrneO53N3A= +github.com/issue9/localeutil v0.26.4 h1:rfBC3YAt9PLHXHc5unreZpYjlEt+xCnVOUr7QDAveiw= +github.com/issue9/localeutil v0.26.4/go.mod h1:BJXJwcAT9CyyVZOlqfmq+B5FcPbqGxGjYnTYbVuiMM8= +github.com/issue9/sliceutil v0.15.1 h1:mV1VlQSO5E8sh2ab6pypLg7TdgGZlDb30E8quli01xY= +github.com/issue9/sliceutil v0.15.1/go.mod h1:ldun6sT4/bOJxuMtOXhtc6P7GCwE7L+avV86HNks7qk= +github.com/issue9/term/v3 v3.2.6 h1:+8sdVdT2GM3OoebNMd5wdt0bswJ1TBukK6HloKgoW3o= +github.com/issue9/term/v3 v3.2.6/go.mod h1:OCUgzwgKUbcHrlRyxQATPaYfNtNbWs17yzkogMpPIjA= +github.com/issue9/version v1.0.8 h1:IsNdDYdV8UGDGwwgp8H4RszJE0Ko26HjWg9pZzyOivs= +github.com/issue9/version v1.0.8/go.mod h1:w8bQwODBOG5+iaS3qIJbElxxpp3Uo4x5F39qKBqwpdc= github.com/mdigger/goldmark-toc v0.0.0-20191225162753-7bc0e0d778c3 h1:V8Lm1RZWBBCemfs8u4aCkfrovo6TQWxCdIPbNFzZmZs= github.com/mdigger/goldmark-toc v0.0.0-20191225162753-7bc0e0d778c3/go.mod h1:8N/DY/esIgHhhFgb7Hqu6IImzuGUmc3rc2vJlkg7MVw= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -42,14 +42,14 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/yuin/goldmark v1.1.18/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.15/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68= -github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.0 h1:EfOIvIMZIzHdB/R/zVrikYLPPwJlfMcNczJFMs1m6sA= +github.com/yuin/goldmark v1.7.0/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc h1:+IAOyRda+RLrxa1WC7umKOZRsGq4QrFFMYApOeHzQwQ= github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc/go.mod h1:ovIvrum6DQJA4QsJSovrkC4saKHQVs7TvcaeO8AIl5I= github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= -golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/internal/cmd/build.go b/internal/cmd/build.go index 68ef9fe..d9dd34e 100644 --- a/internal/cmd/build.go +++ b/internal/cmd/build.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd diff --git a/internal/cmd/build_test.go b/internal/cmd/build_test.go index c953e42..bdf5851 100644 --- a/internal/cmd/build_test.go +++ b/internal/cmd/build_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd @@ -6,7 +8,7 @@ import ( "os" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/filesystem" "github.com/caixw/blogit/v2/internal/vars" diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index f561aad..d4e65fb 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package cmd 提供命令行相关的功能 diff --git a/internal/cmd/cmd_test.go b/internal/cmd/cmd_test.go index bea69ff..f7a000e 100644 --- a/internal/cmd/cmd_test.go +++ b/internal/cmd/cmd_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd @@ -6,7 +8,7 @@ import ( "bytes" "flag" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/cmdopt" "github.com/issue9/localeutil" "golang.org/x/text/language" diff --git a/internal/cmd/console/console.go b/internal/cmd/console/console.go index 5a86308..9253041 100644 --- a/internal/cmd/console/console.go +++ b/internal/cmd/console/console.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package console 输出到控制台的日志 diff --git a/internal/cmd/console/locale.go b/internal/cmd/console/locale.go index 6450164..3924991 100644 --- a/internal/cmd/console/locale.go +++ b/internal/cmd/console/locale.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package console diff --git a/internal/cmd/console/visiter.go b/internal/cmd/console/visiter.go index 71b89d7..8300f13 100644 --- a/internal/cmd/console/visiter.go +++ b/internal/cmd/console/visiter.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package console diff --git a/internal/cmd/create/create.go b/internal/cmd/create/create.go index 5a24f90..17dbe06 100644 --- a/internal/cmd/create/create.go +++ b/internal/cmd/create/create.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package create 创建文章的相关子命令 diff --git a/internal/cmd/create/init.go b/internal/cmd/create/init.go index cfaad34..438b665 100644 --- a/internal/cmd/create/init.go +++ b/internal/cmd/create/init.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package create diff --git a/internal/cmd/create/init_test.go b/internal/cmd/create/init_test.go index aeae822..8490ebc 100644 --- a/internal/cmd/create/init_test.go +++ b/internal/cmd/create/init_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package create @@ -8,7 +10,7 @@ import ( "path" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/cmdopt" "github.com/issue9/term/v3/colors" "golang.org/x/text/language" diff --git a/internal/cmd/create/post.go b/internal/cmd/create/post.go index 3aaf5a4..58f6f92 100644 --- a/internal/cmd/create/post.go +++ b/internal/cmd/create/post.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package create diff --git a/internal/cmd/create/post_test.go b/internal/cmd/create/post_test.go index d0f13a9..838e04b 100644 --- a/internal/cmd/create/post_test.go +++ b/internal/cmd/create/post_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package create @@ -8,7 +10,7 @@ import ( "path" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/cmdopt" "github.com/issue9/term/v3/colors" "golang.org/x/text/language" diff --git a/internal/cmd/drafts.go b/internal/cmd/drafts.go index b30910f..5e13749 100644 --- a/internal/cmd/drafts.go +++ b/internal/cmd/drafts.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd diff --git a/internal/cmd/drafts_test.go b/internal/cmd/drafts_test.go index 91c98eb..7c59285 100644 --- a/internal/cmd/drafts_test.go +++ b/internal/cmd/drafts_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd @@ -6,7 +8,7 @@ import ( "strings" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/vars" ) diff --git a/internal/cmd/preview/options.go b/internal/cmd/preview/options.go index 4d77484..e998fb4 100644 --- a/internal/cmd/preview/options.go +++ b/internal/cmd/preview/options.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package preview diff --git a/internal/cmd/preview/options_test.go b/internal/cmd/preview/options_test.go index 841a84b..5c219df 100644 --- a/internal/cmd/preview/options_test.go +++ b/internal/cmd/preview/options_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package preview @@ -8,7 +10,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/term/v3/colors" "golang.org/x/text/language" diff --git a/internal/cmd/preview/preview.go b/internal/cmd/preview/preview.go index 83be1b8..77b6d95 100644 --- a/internal/cmd/preview/preview.go +++ b/internal/cmd/preview/preview.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package preview 提供 preview 子命令 diff --git a/internal/cmd/serve/options.go b/internal/cmd/serve/options.go index fe5cd75..6dcda08 100644 --- a/internal/cmd/serve/options.go +++ b/internal/cmd/serve/options.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package serve diff --git a/internal/cmd/serve/options_test.go b/internal/cmd/serve/options_test.go index 0f01429..c7af819 100644 --- a/internal/cmd/serve/options_test.go +++ b/internal/cmd/serve/options_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package serve @@ -8,7 +10,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/term/v3/colors" "golang.org/x/text/language" diff --git a/internal/cmd/serve/serve.go b/internal/cmd/serve/serve.go index 2e33459..02c9aae 100644 --- a/internal/cmd/serve/serve.go +++ b/internal/cmd/serve/serve.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package serve 提供 serve 子命令 diff --git a/internal/cmd/styles.go b/internal/cmd/styles.go index db21864..cea2cab 100644 --- a/internal/cmd/styles.go +++ b/internal/cmd/styles.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd diff --git a/internal/cmd/styles_test.go b/internal/cmd/styles_test.go index 2de0b36..f6fef2b 100644 --- a/internal/cmd/styles_test.go +++ b/internal/cmd/styles_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd @@ -6,7 +8,7 @@ import ( "strings" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestPrintStyles(t *testing.T) { diff --git a/internal/cmd/version.go b/internal/cmd/version.go index 57cb32a..5f16dab 100644 --- a/internal/cmd/version.go +++ b/internal/cmd/version.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd diff --git a/internal/cmd/version_test.go b/internal/cmd/version_test.go index afca958..f79d72e 100644 --- a/internal/cmd/version_test.go +++ b/internal/cmd/version_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package cmd @@ -6,7 +8,7 @@ import ( "strings" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2" ) diff --git a/internal/data/archive.go b/internal/data/archive.go index ee514e7..ddfcf96 100644 --- a/internal/data/archive.go +++ b/internal/data/archive.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/archive_test.go b/internal/data/archive_test.go index 33110f0..861e18a 100644 --- a/internal/data/archive_test.go +++ b/internal/data/archive_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data @@ -6,7 +8,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/loader" ) diff --git a/internal/data/data.go b/internal/data/data.go index cdf3b36..b394400 100644 --- a/internal/data/data.go +++ b/internal/data/data.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package data 对加载的数据进行二次加工 diff --git a/internal/data/data_test.go b/internal/data/data_test.go index 12b2df0..16129bf 100644 --- a/internal/data/data_test.go +++ b/internal/data/data_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data @@ -6,7 +8,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/testdata" ) diff --git a/internal/data/jsonld.go b/internal/data/jsonld.go index 0ddefd9..f474845 100644 --- a/internal/data/jsonld.go +++ b/internal/data/jsonld.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/post.go b/internal/data/post.go index 8597b39..a224b96 100644 --- a/internal/data/post.go +++ b/internal/data/post.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/post_test.go b/internal/data/post_test.go index 87b53e6..dc93341 100644 --- a/internal/data/post_test.go +++ b/internal/data/post_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data @@ -6,7 +8,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/loader" ) diff --git a/internal/data/profile.go b/internal/data/profile.go index 1882f94..7cd8b53 100644 --- a/internal/data/profile.go +++ b/internal/data/profile.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/robots.go b/internal/data/robots.go index 1d44778..a8f0923 100644 --- a/internal/data/robots.go +++ b/internal/data/robots.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/robots_test.go b/internal/data/robots_test.go index 4a9b2b3..8f6a41c 100644 --- a/internal/data/robots_test.go +++ b/internal/data/robots_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data @@ -5,7 +7,7 @@ package data import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/loader" ) diff --git a/internal/data/rss.go b/internal/data/rss.go index db1386d..6578f34 100644 --- a/internal/data/rss.go +++ b/internal/data/rss.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/sitemap.go b/internal/data/sitemap.go index 3792da0..62e66ea 100644 --- a/internal/data/sitemap.go +++ b/internal/data/sitemap.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/tag.go b/internal/data/tag.go index ef5a6e9..e7bdf02 100644 --- a/internal/data/tag.go +++ b/internal/data/tag.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/data/tag_test.go b/internal/data/tag_test.go index d260487..c61feae 100644 --- a/internal/data/tag_test.go +++ b/internal/data/tag_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data @@ -5,7 +7,7 @@ package data import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/loader" ) diff --git a/internal/data/theme.go b/internal/data/theme.go index 52ab9c9..f065b8b 100644 --- a/internal/data/theme.go +++ b/internal/data/theme.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package data diff --git a/internal/filesystem/fileserver.go b/internal/filesystem/fileserver.go index 0f7d8d3..c189290 100644 --- a/internal/filesystem/fileserver.go +++ b/internal/filesystem/fileserver.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package filesystem diff --git a/internal/filesystem/fileserver_test.go b/internal/filesystem/fileserver_test.go index 360de08..d314418 100644 --- a/internal/filesystem/fileserver_test.go +++ b/internal/filesystem/fileserver_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package filesystem @@ -8,8 +10,8 @@ import ( "os" "testing" - "github.com/issue9/assert/v3" - "github.com/issue9/assert/v3/rest" + "github.com/issue9/assert/v4" + "github.com/issue9/assert/v4/rest" ) func TestFileServer(t *testing.T) { diff --git a/internal/filesystem/filesystem.go b/internal/filesystem/filesystem.go index e27497e..d2b23ef 100644 --- a/internal/filesystem/filesystem.go +++ b/internal/filesystem/filesystem.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package filesystem 提供文件系统的相关函数 diff --git a/internal/filesystem/filesystem_test.go b/internal/filesystem/filesystem_test.go index f3e9bfd..a2ca22e 100644 --- a/internal/filesystem/filesystem_test.go +++ b/internal/filesystem/filesystem_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package filesystem @@ -6,7 +8,7 @@ import ( "os" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestExists(t *testing.T) { diff --git a/internal/loader/archive.go b/internal/loader/archive.go index ce9d06d..52c9262 100644 --- a/internal/loader/archive.go +++ b/internal/loader/archive.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/archive_test.go b/internal/loader/archive_test.go index ddef24f..21a171f 100644 --- a/internal/loader/archive_test.go +++ b/internal/loader/archive_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -5,7 +7,7 @@ package loader import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestArchive_sanitize(t *testing.T) { diff --git a/internal/loader/config.go b/internal/loader/config.go index 52d01f5..71db060 100644 --- a/internal/loader/config.go +++ b/internal/loader/config.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/config_test.go b/internal/loader/config_test.go index d67f8ca..a365e3f 100644 --- a/internal/loader/config_test.go +++ b/internal/loader/config_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -7,7 +9,7 @@ import ( "testing" "time" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/testdata" ) diff --git a/internal/loader/is.go b/internal/loader/is.go index a2507a2..46c21c4 100644 --- a/internal/loader/is.go +++ b/internal/loader/is.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/loader.go b/internal/loader/loader.go index 4b4fb65..9664d12 100644 --- a/internal/loader/loader.go +++ b/internal/loader/loader.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package loader 加载数据内容 diff --git a/internal/loader/loader_test.go b/internal/loader/loader_test.go index 2c8b23a..a9e29e7 100644 --- a/internal/loader/loader_test.go +++ b/internal/loader/loader_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -5,7 +7,7 @@ package loader import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/localeutil" ) diff --git a/internal/loader/md.go b/internal/loader/md.go index fd31883..d37f876 100644 --- a/internal/loader/md.go +++ b/internal/loader/md.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/post.go b/internal/loader/post.go index 3cc0f46..0ab9668 100644 --- a/internal/loader/post.go +++ b/internal/loader/post.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/post_test.go b/internal/loader/post_test.go index 6626c28..bfb2500 100644 --- a/internal/loader/post_test.go +++ b/internal/loader/post_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -5,7 +7,7 @@ package loader import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/testdata" ) diff --git a/internal/loader/profile.go b/internal/loader/profile.go index d941894..31597d8 100644 --- a/internal/loader/profile.go +++ b/internal/loader/profile.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/profile_test.go b/internal/loader/profile_test.go index 17a8c2d..0543ae7 100644 --- a/internal/loader/profile_test.go +++ b/internal/loader/profile_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -5,7 +7,7 @@ package loader import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestProfile_sanitize(t *testing.T) { diff --git a/internal/loader/robots.go b/internal/loader/robots.go index 411d502..73c9a8c 100644 --- a/internal/loader/robots.go +++ b/internal/loader/robots.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/robots_test.go b/internal/loader/robots_test.go index dfe4c9c..704ccb7 100644 --- a/internal/loader/robots_test.go +++ b/internal/loader/robots_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -5,7 +7,7 @@ package loader import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestRobots(t *testing.T) { diff --git a/internal/loader/sitemap.go b/internal/loader/sitemap.go index 378ba2e..5b3ed2d 100644 --- a/internal/loader/sitemap.go +++ b/internal/loader/sitemap.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/sitemap_test.go b/internal/loader/sitemap_test.go index a1dc87f..bdf87d0 100644 --- a/internal/loader/sitemap_test.go +++ b/internal/loader/sitemap_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -5,7 +7,7 @@ package loader import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" ) func TestSitemap_sanitize(t *testing.T) { diff --git a/internal/loader/tag.go b/internal/loader/tag.go index ade2939..79d32eb 100644 --- a/internal/loader/tag.go +++ b/internal/loader/tag.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/tag_test.go b/internal/loader/tag_test.go index eab2588..1f2ee8a 100644 --- a/internal/loader/tag_test.go +++ b/internal/loader/tag_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -6,7 +8,7 @@ import ( "io/fs" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/issue9/localeutil" "github.com/issue9/localeutil/message/serialize" xm "golang.org/x/text/message" diff --git a/internal/loader/theme.go b/internal/loader/theme.go index 2691b5e..c26b645 100644 --- a/internal/loader/theme.go +++ b/internal/loader/theme.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader diff --git a/internal/loader/theme_test.go b/internal/loader/theme_test.go index 012919a..e56b2f8 100644 --- a/internal/loader/theme_test.go +++ b/internal/loader/theme_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package loader @@ -6,7 +8,7 @@ import ( "io/fs" "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" "github.com/caixw/blogit/v2/internal/testdata" ) diff --git a/internal/testdata/testdata.go b/internal/testdata/testdata.go index 4a067f2..6c65eed 100644 --- a/internal/testdata/testdata.go +++ b/internal/testdata/testdata.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package testdata diff --git a/internal/vars/vars.go b/internal/vars/vars.go index c606a4b..76234c1 100644 --- a/internal/vars/vars.go +++ b/internal/vars/vars.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package vars 提供各种代码级别的配置项 diff --git a/internal/vars/version.go b/internal/vars/version.go index 026618a..727506a 100644 --- a/internal/vars/version.go +++ b/internal/vars/version.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package vars diff --git a/internal/vars/version_test.go b/internal/vars/version_test.go index b020480..623ab14 100644 --- a/internal/vars/version_test.go +++ b/internal/vars/version_test.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT package vars @@ -5,7 +7,7 @@ package vars import ( "testing" - "github.com/issue9/assert/v3" + "github.com/issue9/assert/v4" v "github.com/issue9/version" ) diff --git a/locales/locales.go b/locales/locales.go index 6dcbc37..38c30d3 100644 --- a/locales/locales.go +++ b/locales/locales.go @@ -1,3 +1,5 @@ +// SPDX-FileCopyrightText: 2020-2024 caixw +// // SPDX-License-Identifier: MIT // Package locales 提供本地化相关操作