mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-31 01:47:24 +02:00
first commit
This commit is contained in:
commit
0c8af21fab
95 changed files with 5312 additions and 0 deletions
21
server/internal/structs/version.go
Normal file
21
server/internal/structs/version.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue