32 lines
508 B
Go
32 lines
508 B
Go
package main
|
|
|
|
import (
|
|
"skunkyart/app"
|
|
"skunkyart/static"
|
|
"time"
|
|
|
|
"git.macaw.me/skunky/devianter"
|
|
)
|
|
|
|
func main() {
|
|
app.Release.Version = "1.3.2"
|
|
app.Release.Description = "Two API endpoints and template embedding into binary"
|
|
go app.RefreshInstances()
|
|
|
|
app.ExecuteCommandLineArguments()
|
|
app.ExecuteConfig()
|
|
static.CopyTemplatesToMemory()
|
|
|
|
go func() {
|
|
for {
|
|
err := devianter.UpdateCSRF()
|
|
if err != nil {
|
|
println(err.Error())
|
|
}
|
|
time.Sleep(12 * time.Hour)
|
|
}
|
|
}()
|
|
|
|
app.Router()
|
|
}
|