mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
373 B
Go
25 lines
373 B
Go
package cointop
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
// TODO: make dynamic based on git tag
|
|
const version = "1.3.4"
|
|
|
|
// Version returns the cointop version
|
|
func (ct *Cointop) Version() string {
|
|
return version
|
|
}
|
|
|
|
// Version returns cointop version
|
|
func Version() string {
|
|
return version
|
|
}
|
|
|
|
// PrintVersion prints the version
|
|
func PrintVersion() {
|
|
fmt.Fprint(os.Stdout, Version())
|
|
}
|