Add automatic rules to manage version number

Former-commit-id: f4fcc1927f4169025c1d8cc88c5f3abcdc76037c
This commit is contained in:
Eric Coissac
2024-06-01 17:26:16 +02:00
parent 38945d0a41
commit 411124d1b3
7 changed files with 370 additions and 153 deletions

16
pkg/obioptions/version.go Normal file
View File

@ -0,0 +1,16 @@
package obioptions
import (
"fmt"
)
var _Commit = ""
var _Version = "Release 4.2.0"
// Version returns the version of the obitools package.
//
// No parameters.
// Returns a string representing the version of the obitools package.
func VersionString() string {
return fmt.Sprintf("%s (%s)", _Version, _Commit)
}