fix: upgrade to yaml v3

This commit is contained in:
Dreamacro 2022-05-26 17:47:05 +08:00 committed by 世界
parent 15ecc451f3
commit a7f9aa909a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 2 additions and 3 deletions

View file

@ -36,7 +36,7 @@ import (
"github.com/Dreamacro/clash/log"
T "github.com/Dreamacro/clash/tunnel"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)
// General config

1
go.mod
View file

@ -32,7 +32,6 @@ require (
golang.zx2c4.com/wireguard v0.0.0-20220407013110-ef5c587f782d
golang.zx2c4.com/wireguard/windows v0.5.4-0.20220328111914-004c22c5647e
google.golang.org/protobuf v1.28.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0
gvisor.dev/gvisor v0.0.0-20220527053002-8ab279227ac8
)

View file

@ -4,7 +4,7 @@ import (
"encoding/json"
C "github.com/Dreamacro/clash/constant"
P "github.com/Dreamacro/clash/constant/provider"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
"runtime"
"time"
)