mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-06-28 14:16:24 +02:00
Unified handling of printing versions of programs (--version). Setting version to 0.5
This commit is contained in:
17
common/version.go
Normal file
17
common/version.go
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright 2014 by Sascha L. Teichmann
|
||||
// Use of this source code is governed by the MIT license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
const MTSatelliteVersion = "0.5"
|
||||
|
||||
func PrintVersionAndExit() {
|
||||
fmt.Printf("Version: %s\n", MTSatelliteVersion)
|
||||
os.Exit(0)
|
||||
}
|
Reference in New Issue
Block a user