From fe8982e829feab86d424c82388bcd16017e71727 Mon Sep 17 00:00:00 2001 From: khorevaa Date: Fri, 26 Feb 2021 14:17:38 +0300 Subject: [PATCH] fix deps --- example_test.go | 17 ++++++++--------- go.mod | 3 +-- go.sum | 5 +---- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/example_test.go b/example_test.go index 7b26e80..73f1452 100644 --- a/example_test.go +++ b/example_test.go @@ -1,7 +1,6 @@ package updateApiClient_test import ( - "github.com/k0kubun/pp" apiClient "github.com/v8platform/updateApiClient" "io" @@ -24,7 +23,7 @@ func ExampleNewClient() { log.Fatal(err) } - pp.Println(updateInfo) + log.Println(updateInfo) } @@ -40,7 +39,7 @@ func ExampleClient_GetUpdateInfo() { log.Fatal(err) } - pp.Println(updateInfo) + log.Println(updateInfo) } @@ -56,7 +55,7 @@ func ExampleClient_GetUpdate() { log.Fatal(err) } - pp.Println(updateInfo) + log.Println(updateInfo) updateData, err := client.GetUpdate(updateInfo.ConfigurationUpdate.ProgramVersionUin, updateInfo.ConfigurationUpdate.UpgradeSequence) @@ -64,7 +63,7 @@ func ExampleClient_GetUpdate() { log.Fatal(err) } - pp.Println(updateData) + log.Println(updateData) } @@ -93,11 +92,11 @@ func ExampleClient_GetConfigurationUpdateData() { log.Fatal(err) } - pp.Println("Download:", updateDataFile.UpdateFileUrl) + log.Println("Download:", updateDataFile.UpdateFileUrl) distPath := strings.ReplaceAll(updateDataFile.TemplatePath, "\\", string(os.PathSeparator)) distPath = filepath.Join(".", distPath) - pp.Println("Path:", distPath) + log.Println("Path:", distPath) err = os.MkdirAll(distPath, os.ModeDir) if err != nil { @@ -199,11 +198,11 @@ func ExampleClient_GetPatchDistributionData() { log.Fatal(err) } - pp.Println("Download:", fileInfo.PatchFileUrl) + log.Println("Download:", fileInfo.PatchFileUrl) distPath := strings.ReplaceAll(fileInfo.PatchFileName, "\\", string(os.PathSeparator)) distPath = filepath.Join(".", "patches", patchesNames[fileInfo.PatchUeid]) - pp.Println("Path:", distPath) + log.Println("Path:", distPath) err = os.MkdirAll(distPath, os.ModeDir) if err != nil { diff --git a/go.mod b/go.mod index 4b5cde3..fac56a5 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,7 @@ module github.com/v8platform/updateApiClient go 1.15 require ( - github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect - github.com/k0kubun/pp v3.0.1+incompatible github.com/khorevaa/logos v0.9.6 github.com/monaco-io/request v1.0.9 + golang.org/x/text v0.3.3 ) diff --git a/go.sum b/go.sum index 7e513db..708b352 100644 --- a/go.sum +++ b/go.sum @@ -7,10 +7,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/elastic/go-ucfg v0.8.3 h1:leywnFjzr2QneZZWhE6uWd+QN/UpP0sdJRHYyuFvkeo= github.com/elastic/go-ucfg v0.8.3/go.mod h1:iaiY0NBIYeasNgycLyTvhJftQlQEUO2hpF+FX0JKxzo= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM= -github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= -github.com/k0kubun/pp v3.0.1+incompatible h1:3tqvf7QgUnZ5tXO6pNAZlrvHgl6DvifjDrd9g2S9Z40= -github.com/k0kubun/pp v3.0.1+incompatible/go.mod h1:GWse8YhT0p8pT4ir3ZgBbfZild3tgzSScAn6HmfYukg= github.com/khorevaa/logos v0.9.6 h1:nKAjr34RsUM8jRiVErLbk6Q7Sf31tjlaCTm4iMDwXyY= github.com/khorevaa/logos v0.9.6/go.mod h1:wLXbpwEXx1Je5HTf7EwgbJntj2kGPvvvAEbxqWlOZNA= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= @@ -63,6 +59,7 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuF golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=