21 lines
474 B
Go
21 lines
474 B
Go
|
// TODO: get runtime build/git info see:
|
||
|
// https://github.com/lightningnetwork/lnd/blob/master/build/version.go#L66
|
||
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
const (
|
||
|
// AppMajor defines the major version of this binary.
|
||
|
AppMajor uint = 0
|
||
|
|
||
|
// AppMinor defines the minor version of this binary.
|
||
|
AppMinor uint = 1
|
||
|
|
||
|
// AppPatch defines the application patch for this binary.
|
||
|
AppPatch uint = 0
|
||
|
)
|
||
|
|
||
|
func version() string {
|
||
|
return fmt.Sprintf("%d.%d.%d", AppMajor, AppMinor, AppPatch)
|
||
|
}
|