mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 17:51:56 +08:00
use main.version rather than subpackage variables
This commit is contained in:
@@ -73,6 +73,11 @@ const (
|
||||
letterIdxMax = 63 / letterIdxBits // # of letter indices fitting in 63 bits
|
||||
)
|
||||
|
||||
// SetVersion -- set netclient version for use by other packages
|
||||
func SetVersion(ver string) {
|
||||
Version = ver
|
||||
}
|
||||
|
||||
// Log - logs a message
|
||||
func Log(message string) {
|
||||
log.SetFlags(log.Flags() &^ (log.Llongfile | log.Lshortfile))
|
||||
|
Reference in New Issue
Block a user