mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
22 lines
384 B
Go
22 lines
384 B
Go
package structs
|
|
|
|
import "fmt"
|
|
|
|
type Version struct {
|
|
Major string
|
|
Minor string
|
|
Patch string
|
|
Version string
|
|
GitVersion string
|
|
GitCommit string
|
|
GitTreeState string
|
|
BuildDate string
|
|
GoVersion string
|
|
Compiler string
|
|
Platform string
|
|
}
|
|
|
|
func (i *Version) String() string {
|
|
return fmt.Sprintf("%s.%s.%s", i.Major, i.Minor, i.Patch)
|
|
}
|