Jelajahi Sumber

Refactoring

Alexey Kim 6 bulan lalu
induk
melakukan
95ec082ca0
4 mengubah file dengan 4 tambahan dan 7 penghapusan
  1. 0 2
      go.mod
  2. 0 2
      go.sum
  3. 1 3
      strategy.go
  4. 3 0
      version.go

+ 0 - 2
go.mod

@@ -1,5 +1,3 @@
 module git.beejay.kim/Gshopper/sentio
 
 go 1.22.2
-
-require github.com/hashicorp/go-version v1.7.0

+ 0 - 2
go.sum

@@ -1,2 +0,0 @@
-github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY=
-github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=

+ 1 - 3
strategy.go

@@ -1,10 +1,8 @@
 package sentio
 
-import "github.com/hashicorp/go-version"
-
 type Strategy interface {
 	Name() string
-	Version() *version.Version
+	Version() string
 
 	Model() string
 	PositionSymbols() map[Side]string

+ 3 - 0
version.go

@@ -0,0 +1,3 @@
+package sentio
+
+var VERSION = "0.0.0-dev"