From 51514a2a661fba943e5ce8ded6e3497df0748fb5 Mon Sep 17 00:00:00 2001 From: dasbd72 Date: Fri, 1 Mar 2024 14:17:14 +0800 Subject: [PATCH] change repo name and module name --- .github/workflows/go.yml | 8 ++++---- binance/go.mod | 2 +- cmd/ccy-cli/balance.go | 8 ++++---- cmd/ccy-cli/binance.go | 2 +- cmd/ccy-cli/go.mod | 10 +++++----- cmd/ccy-cli/go.sum | 16 ++++++++-------- cmd/ccy-cli/max.go | 2 +- cmd/ccy-cli/okx.go | 2 +- go.work.sum | 8 ++++---- manager/balance.go | 6 +++--- manager/client.go | 4 ++-- manager/go.mod | 8 ++++---- manager/go.sum | 12 ++++++------ max/go.mod | 2 +- okx/go.mod | 2 +- 15 files changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dae9833..462e2c7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -22,16 +22,16 @@ jobs: go-version: '1.22' - name: Binance Unit Test - run: go test -v github.com/dasbd72/asset-management/binance + run: go test -v github.com/dasbd72/go-exchange-sdk/binance - name: OKX Unit Test - run: go test -v github.com/dasbd72/asset-management/okx + run: go test -v github.com/dasbd72/go-exchange-sdk/okx - name: MAX Unit Test - run: go test -v github.com/dasbd72/asset-management/max + run: go test -v github.com/dasbd72/go-exchange-sdk/max - name: Manager Unit Test - run: go test -v github.com/dasbd72/asset-management/manager + run: go test -v github.com/dasbd72/go-exchange-sdk/manager - name: CLI Build Test run: go build -v -o bin/ccy-cli ./cmd/ccy-cli/... diff --git a/binance/go.mod b/binance/go.mod index c03be44..6682678 100644 --- a/binance/go.mod +++ b/binance/go.mod @@ -1,4 +1,4 @@ -module github.com/dasbd72/asset-management/binance +module github.com/dasbd72/go-exchange-sdk/binance go 1.22 diff --git a/cmd/ccy-cli/balance.go b/cmd/ccy-cli/balance.go index 6614f51..159aac9 100644 --- a/cmd/ccy-cli/balance.go +++ b/cmd/ccy-cli/balance.go @@ -5,10 +5,10 @@ import ( "fmt" "os" - "github.com/dasbd72/asset-management/binance" - "github.com/dasbd72/asset-management/manager" - "github.com/dasbd72/asset-management/max" - "github.com/dasbd72/asset-management/okx" + "github.com/dasbd72/go-exchange-sdk/binance" + "github.com/dasbd72/go-exchange-sdk/manager" + "github.com/dasbd72/go-exchange-sdk/max" + "github.com/dasbd72/go-exchange-sdk/okx" "github.com/spf13/cobra" ) diff --git a/cmd/ccy-cli/binance.go b/cmd/ccy-cli/binance.go index 0d3f9b1..c804733 100644 --- a/cmd/ccy-cli/binance.go +++ b/cmd/ccy-cli/binance.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/dasbd72/asset-management/binance" + "github.com/dasbd72/go-exchange-sdk/binance" "github.com/spf13/cobra" ) diff --git a/cmd/ccy-cli/go.mod b/cmd/ccy-cli/go.mod index ff10457..2230316 100644 --- a/cmd/ccy-cli/go.mod +++ b/cmd/ccy-cli/go.mod @@ -1,12 +1,12 @@ -module github.com/dasbd72/asset-management/cmd/ccy-cli +module github.com/dasbd72/go-exchange-sdk/cmd/ccy-cli go 1.22 require ( - github.com/dasbd72/asset-management/binance v0.0.0-20240219145431-c2f696b52ef7 - github.com/dasbd72/asset-management/manager v0.0.0-20240220143049-a8e14227b876 - github.com/dasbd72/asset-management/max v0.0.0-20240219145431-c2f696b52ef7 - github.com/dasbd72/asset-management/okx v0.0.0-20240219145431-c2f696b52ef7 + github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219145431-c2f696b52ef7 + github.com/dasbd72/go-exchange-sdk/manager v0.0.0-20240220143049-a8e14227b876 + github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219145431-c2f696b52ef7 + github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219145431-c2f696b52ef7 github.com/joho/godotenv v1.5.1 github.com/spf13/cobra v1.8.0 ) diff --git a/cmd/ccy-cli/go.sum b/cmd/ccy-cli/go.sum index 5b796c5..dade19a 100644 --- a/cmd/ccy-cli/go.sum +++ b/cmd/ccy-cli/go.sum @@ -1,12 +1,12 @@ github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/dasbd72/asset-management/binance v0.0.0-20240219145431-c2f696b52ef7 h1:llyCF+0q9gKd4A1ouI67TXjRo3Vi4Uwl5t/1eMBgooo= -github.com/dasbd72/asset-management/binance v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:7MWjdfOOk6OwTja1SeVFRkyhHB4OkJqoloL9eTDwDUU= -github.com/dasbd72/asset-management/manager v0.0.0-20240220143049-a8e14227b876 h1:fifaiVYL4u5hSGcFmh2/7NYqE2UdzKMRQ+LkaNCAH0Y= -github.com/dasbd72/asset-management/manager v0.0.0-20240220143049-a8e14227b876/go.mod h1:PDJCshwZOhpPUBodpcU1NE0S8FyR2GuyVSRBFoDUTuo= -github.com/dasbd72/asset-management/max v0.0.0-20240219145431-c2f696b52ef7 h1:DqDYujgRlJrWQgSdTws+uzlBdAF4RTtzWxnm99FHtZI= -github.com/dasbd72/asset-management/max v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:nQOAzru+GswuHXPTz2Y4KNxMtryD2FxppkqkHkRQopo= -github.com/dasbd72/asset-management/okx v0.0.0-20240219145431-c2f696b52ef7 h1:C5cv0k6cNyFaTJKyLmDJ5MMf3nffubbq9MPZKTttVG8= -github.com/dasbd72/asset-management/okx v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:pqzDe3U2v2iB61vcAPfQL6KQ0BHBwwWYydZGGVOLbgw= +github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219145431-c2f696b52ef7 h1:llyCF+0q9gKd4A1ouI67TXjRo3Vi4Uwl5t/1eMBgooo= +github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:7MWjdfOOk6OwTja1SeVFRkyhHB4OkJqoloL9eTDwDUU= +github.com/dasbd72/go-exchange-sdk/manager v0.0.0-20240220143049-a8e14227b876 h1:fifaiVYL4u5hSGcFmh2/7NYqE2UdzKMRQ+LkaNCAH0Y= +github.com/dasbd72/go-exchange-sdk/manager v0.0.0-20240220143049-a8e14227b876/go.mod h1:PDJCshwZOhpPUBodpcU1NE0S8FyR2GuyVSRBFoDUTuo= +github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219145431-c2f696b52ef7 h1:DqDYujgRlJrWQgSdTws+uzlBdAF4RTtzWxnm99FHtZI= +github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:nQOAzru+GswuHXPTz2Y4KNxMtryD2FxppkqkHkRQopo= +github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219145431-c2f696b52ef7 h1:C5cv0k6cNyFaTJKyLmDJ5MMf3nffubbq9MPZKTttVG8= +github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:pqzDe3U2v2iB61vcAPfQL6KQ0BHBwwWYydZGGVOLbgw= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= diff --git a/cmd/ccy-cli/max.go b/cmd/ccy-cli/max.go index 3061d0e..dc1375c 100644 --- a/cmd/ccy-cli/max.go +++ b/cmd/ccy-cli/max.go @@ -4,7 +4,7 @@ import ( "encoding/json" "log" - "github.com/dasbd72/asset-management/max" + "github.com/dasbd72/go-exchange-sdk/max" "github.com/spf13/cobra" ) diff --git a/cmd/ccy-cli/okx.go b/cmd/ccy-cli/okx.go index 7d91739..0bcf9a0 100644 --- a/cmd/ccy-cli/okx.go +++ b/cmd/ccy-cli/okx.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/dasbd72/asset-management/okx" + "github.com/dasbd72/go-exchange-sdk/okx" "github.com/spf13/cobra" ) diff --git a/go.work.sum b/go.work.sum index 6996fea..2b268ee 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,5 +1,5 @@ -github.com/dasbd72/asset-management/binance v0.0.0-20240219071459-322ce6b28840/go.mod h1:7MWjdfOOk6OwTja1SeVFRkyhHB4OkJqoloL9eTDwDUU= -github.com/dasbd72/asset-management/manager v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:zlKOYZrezp5dYoDrWh3Zwo/ll5qXhMQcbh+t6xj0cc8= -github.com/dasbd72/asset-management/max v0.0.0-20240219071459-322ce6b28840/go.mod h1:nQOAzru+GswuHXPTz2Y4KNxMtryD2FxppkqkHkRQopo= -github.com/dasbd72/asset-management/okx v0.0.0-20240219071459-322ce6b28840/go.mod h1:pqzDe3U2v2iB61vcAPfQL6KQ0BHBwwWYydZGGVOLbgw= +github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219071459-322ce6b28840/go.mod h1:7MWjdfOOk6OwTja1SeVFRkyhHB4OkJqoloL9eTDwDUU= +github.com/dasbd72/go-exchange-sdk/manager v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:zlKOYZrezp5dYoDrWh3Zwo/ll5qXhMQcbh+t6xj0cc8= +github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219071459-322ce6b28840/go.mod h1:nQOAzru+GswuHXPTz2Y4KNxMtryD2FxppkqkHkRQopo= +github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219071459-322ce6b28840/go.mod h1:pqzDe3U2v2iB61vcAPfQL6KQ0BHBwwWYydZGGVOLbgw= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/manager/balance.go b/manager/balance.go index fd69fea..e74dc3c 100644 --- a/manager/balance.go +++ b/manager/balance.go @@ -3,9 +3,9 @@ package manager import ( "context" - "github.com/dasbd72/asset-management/binance" - "github.com/dasbd72/asset-management/max" - "github.com/dasbd72/asset-management/okx" + "github.com/dasbd72/go-exchange-sdk/binance" + "github.com/dasbd72/go-exchange-sdk/max" + "github.com/dasbd72/go-exchange-sdk/okx" ) type ( diff --git a/manager/client.go b/manager/client.go index 06a9d7e..9bc4bb2 100644 --- a/manager/client.go +++ b/manager/client.go @@ -1,8 +1,8 @@ package manager import ( - "github.com/dasbd72/asset-management/binance" - "github.com/dasbd72/asset-management/okx" + "github.com/dasbd72/go-exchange-sdk/binance" + "github.com/dasbd72/go-exchange-sdk/okx" ) type Client struct { diff --git a/manager/go.mod b/manager/go.mod index 66e6115..733c145 100644 --- a/manager/go.mod +++ b/manager/go.mod @@ -1,9 +1,9 @@ -module github.com/dasbd72/asset-management/manager +module github.com/dasbd72/go-exchange-sdk/manager go 1.22 require ( - github.com/dasbd72/asset-management/binance v0.0.0-20240219145431-c2f696b52ef7 - github.com/dasbd72/asset-management/max v0.0.0-20240219145431-c2f696b52ef7 - github.com/dasbd72/asset-management/okx v0.0.0-20240219145431-c2f696b52ef7 + github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219145431-c2f696b52ef7 + github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219145431-c2f696b52ef7 + github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219145431-c2f696b52ef7 ) diff --git a/manager/go.sum b/manager/go.sum index 86e4ecb..37b98dc 100644 --- a/manager/go.sum +++ b/manager/go.sum @@ -1,8 +1,8 @@ -github.com/dasbd72/asset-management/binance v0.0.0-20240219145431-c2f696b52ef7 h1:llyCF+0q9gKd4A1ouI67TXjRo3Vi4Uwl5t/1eMBgooo= -github.com/dasbd72/asset-management/binance v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:7MWjdfOOk6OwTja1SeVFRkyhHB4OkJqoloL9eTDwDUU= -github.com/dasbd72/asset-management/max v0.0.0-20240219145431-c2f696b52ef7 h1:DqDYujgRlJrWQgSdTws+uzlBdAF4RTtzWxnm99FHtZI= -github.com/dasbd72/asset-management/max v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:nQOAzru+GswuHXPTz2Y4KNxMtryD2FxppkqkHkRQopo= -github.com/dasbd72/asset-management/okx v0.0.0-20240219145431-c2f696b52ef7 h1:C5cv0k6cNyFaTJKyLmDJ5MMf3nffubbq9MPZKTttVG8= -github.com/dasbd72/asset-management/okx v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:pqzDe3U2v2iB61vcAPfQL6KQ0BHBwwWYydZGGVOLbgw= +github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219145431-c2f696b52ef7 h1:llyCF+0q9gKd4A1ouI67TXjRo3Vi4Uwl5t/1eMBgooo= +github.com/dasbd72/go-exchange-sdk/binance v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:7MWjdfOOk6OwTja1SeVFRkyhHB4OkJqoloL9eTDwDUU= +github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219145431-c2f696b52ef7 h1:DqDYujgRlJrWQgSdTws+uzlBdAF4RTtzWxnm99FHtZI= +github.com/dasbd72/go-exchange-sdk/max v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:nQOAzru+GswuHXPTz2Y4KNxMtryD2FxppkqkHkRQopo= +github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219145431-c2f696b52ef7 h1:C5cv0k6cNyFaTJKyLmDJ5MMf3nffubbq9MPZKTttVG8= +github.com/dasbd72/go-exchange-sdk/okx v0.0.0-20240219145431-c2f696b52ef7/go.mod h1:pqzDe3U2v2iB61vcAPfQL6KQ0BHBwwWYydZGGVOLbgw= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/max/go.mod b/max/go.mod index 6d948e2..3a46dfc 100644 --- a/max/go.mod +++ b/max/go.mod @@ -1,4 +1,4 @@ -module github.com/dasbd72/asset-management/max +module github.com/dasbd72/go-exchange-sdk/max go 1.22 diff --git a/okx/go.mod b/okx/go.mod index f867d6d..ee200f1 100644 --- a/okx/go.mod +++ b/okx/go.mod @@ -1,4 +1,4 @@ -module github.com/dasbd72/asset-management/okx +module github.com/dasbd72/go-exchange-sdk/okx go 1.22