You've already forked directdnsonly-go
Initial Project
This commit is contained in:
21
internal/version/version.go
Normal file
21
internal/version/version.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package version
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
// GitCommit returns the git commit that was compiled. This will be filled in by the compiler.
|
||||
var GitCommit string
|
||||
|
||||
// Version returns the main version number that is being run at the moment.
|
||||
const Version = "0.1.0"
|
||||
|
||||
// BuildDate returns the date the binary was built
|
||||
var BuildDate = ""
|
||||
|
||||
// GoVersion returns the version of the go runtime used to compile the binary
|
||||
var GoVersion = runtime.Version()
|
||||
|
||||
// OsArch returns the os and arch used to build the binary
|
||||
var OsArch = fmt.Sprintf("%s %s", runtime.GOOS, runtime.GOARCH)
|
||||
Reference in New Issue
Block a user