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.
cointop/cointop/version.go

25 lines
399 B
Go

package cointop
import (
"fmt"
"os"
)
// version is the cointop version which will be populated by ldflags
var version = "dev"
// 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())
}