Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
khorevaa committed Feb 26, 2021
1 parent 6e6604b commit fe8982e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
17 changes: 8 additions & 9 deletions example_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package updateApiClient_test

import (
"github.com/k0kubun/pp"
apiClient "github.com/v8platform/updateApiClient"

"io"
Expand All @@ -24,7 +23,7 @@ func ExampleNewClient() {
log.Fatal(err)
}

pp.Println(updateInfo)
log.Println(updateInfo)

}

Expand All @@ -40,7 +39,7 @@ func ExampleClient_GetUpdateInfo() {
log.Fatal(err)
}

pp.Println(updateInfo)
log.Println(updateInfo)

}

Expand All @@ -56,15 +55,15 @@ func ExampleClient_GetUpdate() {
log.Fatal(err)
}

pp.Println(updateInfo)
log.Println(updateInfo)

updateData, err := client.GetUpdate(updateInfo.ConfigurationUpdate.ProgramVersionUin, updateInfo.ConfigurationUpdate.UpgradeSequence)

if err != nil {
log.Fatal(err)
}

pp.Println(updateData)
log.Println(updateData)

}

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
5 changes: 1 addition & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down Expand Up @@ -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=
Expand Down

0 comments on commit fe8982e

Please sign in to comment.