21 lines
537 B
Go
21 lines
537 B
Go
package configs
|
|
|
|
import (
|
|
"strconv"
|
|
"time"
|
|
|
|
"git.wh64.net/muffin/goMuffin/utils"
|
|
)
|
|
|
|
const MUFFIN_VERSION = "0.0.0-gopher_dev.250403b"
|
|
|
|
var updatedString string = utils.Decimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]
|
|
|
|
var UpdatedAt *time.Time = func() *time.Time {
|
|
year, _ := strconv.Atoi("20" + updatedString[0:2])
|
|
monthInt, _ := strconv.Atoi(updatedString[2:4])
|
|
month := time.Month(monthInt)
|
|
day, _ := strconv.Atoi(updatedString[4:6])
|
|
time := time.Date(year, month, day, 0, 0, 0, 0, &time.Location{})
|
|
return &time
|
|
}()
|