2018-08-15 16:34:50 +02:00
|
|
|
package meta
|
|
|
|
|
2018-08-30 20:41:50 +02:00
|
|
|
import (
|
|
|
|
"strconv"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2018-08-15 16:34:50 +02:00
|
|
|
var Version = ""
|
2018-08-30 20:41:50 +02:00
|
|
|
var Time = ""
|
|
|
|
var BuildTime time.Time
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
if Time != "" {
|
|
|
|
t, err := strconv.Atoi(Time)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
BuildTime = time.Unix(int64(t), 0).UTC()
|
|
|
|
}
|
|
|
|
}
|