use main.version rather than subpackage variables

This commit is contained in:
Matthew R. Kasun
2022-02-08 07:01:39 -05:00
parent acef10991b
commit 4ab924af3e
5 changed files with 30 additions and 14 deletions

View File

@@ -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))