mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Engine changes
This commit is contained in:
11
core/banner.go
Normal file
11
core/banner.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package core
|
||||
|
||||
// Banner features the GoCryptoTrader banner
|
||||
const Banner = `
|
||||
______ ______ __ ______ __
|
||||
/ ____/____ / ____/_____ __ __ ____ / /_ ____ /_ __/_____ ______ ____/ /___ _____
|
||||
/ / __ / __ \ / / / ___// / / // __ \ / __// __ \ / / / ___// __ // __ // _ \ / ___/
|
||||
/ /_/ // /_/ // /___ / / / /_/ // /_/ // /_ / /_/ // / / / / /_/ // /_/ // __// /
|
||||
\____/ \____/ \____//_/ \__, // .___/ \__/ \____//_/ /_/ \__,_/ \__,_/ \___//_/
|
||||
/____//_/
|
||||
`
|
||||
49
core/version.go
Normal file
49
core/version.go
Normal file
@@ -0,0 +1,49 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"time"
|
||||
)
|
||||
|
||||
// const vars related to the app version
|
||||
const (
|
||||
MajorVersion = "0"
|
||||
MinorVersion = "1"
|
||||
|
||||
PrereleaseBlurb = "This version is pre-release and is not inteded to be used as a production ready trading framework or bot - use at your own risk."
|
||||
IsRelease = false
|
||||
GitHub = "GitHub: https://github.com/thrasher-/gocryptotrader"
|
||||
Trello = "Trello: https://trello.com/b/ZAhMhpOy/gocryptotrader"
|
||||
Slack = "Slack: https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTQyYjIxNGVhMWU5MDZlOGYzMmE0NTJmM2MzYWY5NGMzMmM4MzUwNTBjZTEzNjIwODM5NDcxODQwZDljMGQyNGY"
|
||||
Issues = "Issues: https://github.com/thrasher-/gocryptotrader/issues"
|
||||
)
|
||||
|
||||
// vars related to the app version
|
||||
var (
|
||||
Copyright = fmt.Sprintf("Copyright (c) 2014-%d The GoCryptoTrader Developers.",
|
||||
time.Now().Year())
|
||||
)
|
||||
|
||||
// Version returns the version string
|
||||
func Version(short bool) string {
|
||||
versionStr := fmt.Sprintf("GoCryptoTrader v%s.%s %s %s",
|
||||
MajorVersion, MinorVersion, runtime.GOARCH, runtime.Version())
|
||||
if !IsRelease {
|
||||
versionStr += " pre-release.\n"
|
||||
if !short {
|
||||
versionStr += PrereleaseBlurb + "\n"
|
||||
}
|
||||
} else {
|
||||
versionStr += " release.\n"
|
||||
}
|
||||
if short {
|
||||
return versionStr
|
||||
}
|
||||
versionStr += Copyright + "\n\n"
|
||||
versionStr += GitHub + "\n"
|
||||
versionStr += Trello + "\n"
|
||||
versionStr += Slack + "\n"
|
||||
versionStr += Issues + "\n"
|
||||
return versionStr
|
||||
}
|
||||
Reference in New Issue
Block a user