From cf943eb4188f7a192b41df0e3ab4d3a5d9296273 Mon Sep 17 00:00:00 2001 From: caixw Date: Thu, 2 Jun 2022 12:25:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/config.go | 2 +- build/config_test.go | 2 +- docs/example/index.xml | 2 +- internal/cmd/cmd_test.go | 2 +- internal/cmd/detect.go | 2 +- internal/cmd/detect_test.go | 2 +- internal/openapi/parse.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/config.go b/build/config.go index 1466a513..99e3d164 100644 --- a/build/config.go +++ b/build/config.go @@ -8,7 +8,7 @@ import ( "strconv" "github.com/issue9/version" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/internal/ast" diff --git a/build/config_test.go b/build/config_test.go index 0c4af57a..3d7710cd 100644 --- a/build/config_test.go +++ b/build/config_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/issue9/assert/v2" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/core/messagetest" diff --git a/docs/example/index.xml b/docs/example/index.xml index a9e27186..bb83d063 100755 --- a/docs/example/index.xml +++ b/docs/example/index.xml @@ -1,7 +1,7 @@ - + 示例文档 这是一个用于测试的文档用例

diff --git a/internal/cmd/cmd_test.go b/internal/cmd/cmd_test.go index 9a5af220..bb5caa56 100644 --- a/internal/cmd/cmd_test.go +++ b/internal/cmd/cmd_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/issue9/assert/v2" - "github.com/issue9/term/v2/colors" + "github.com/issue9/term/v3/colors" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/internal/locale" diff --git a/internal/cmd/detect.go b/internal/cmd/detect.go index 025c0a81..2c1617eb 100644 --- a/internal/cmd/detect.go +++ b/internal/cmd/detect.go @@ -7,7 +7,7 @@ import ( "io" "github.com/issue9/cmdopt" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/build" "github.com/caixw/apidoc/v7/core" diff --git a/internal/cmd/detect_test.go b/internal/cmd/detect_test.go index 6a1f1bab..ca386b77 100644 --- a/internal/cmd/detect_test.go +++ b/internal/cmd/detect_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/issue9/assert/v2" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/build" "github.com/caixw/apidoc/v7/internal/ast" diff --git a/internal/openapi/parse.go b/internal/openapi/parse.go index ee1f038f..92836053 100644 --- a/internal/openapi/parse.go +++ b/internal/openapi/parse.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/internal/ast"