From 7f02953ab1430962bd797fbb453c55ca82c5b583 Mon Sep 17 00:00:00 2001 From: Cyan Date: Sat, 17 Aug 2024 00:11:04 +0800 Subject: [PATCH 1/2] deprecated v2 yaml package --- file/config_import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/config_import.go b/file/config_import.go index 2149e72..f79a935 100644 --- a/file/config_import.go +++ b/file/config_import.go @@ -11,7 +11,7 @@ import ( "github.com/aceld/kis-flow/flow" "github.com/aceld/kis-flow/kis" "github.com/aceld/kis-flow/metrics" - yaml "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) type allConfig struct { From d01a266ad3181ea4070175e9e8fb14f27f804b3d Mon Sep 17 00:00:00 2001 From: Cyan Date: Sat, 17 Aug 2024 00:13:04 +0800 Subject: [PATCH 2/2] deprecated v2 yaml package --- go.mod | 1 - 1 file changed, 1 deletion(-) diff --git a/go.mod b/go.mod index 557a495..107abb9 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,6 @@ require ( github.com/google/uuid v1.6.0 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/prometheus/client_golang v1.14.0 - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 )