krz/skunky-art
Alternative privacy frontend for DeviantArt.
clone: git clone https://gitbay.org/krz/skunky-art.git
v1.3.2: main.go · raw
1package main
2
3import (
4 "skunkyart/app"
5 "skunkyart/static"
6 "time"
7
8 "git.macaw.me/skunky/devianter"
9)
10
11func main() {
12 app.Release.Version = "1.3.2"
13 app.Release.Description = "Two API endpoints and template embedding into binary"
14 go app.RefreshInstances()
15
16 app.ExecuteCommandLineArguments()
17 app.ExecuteConfig()
18 static.CopyTemplatesToMemory()
19
20 go func() {
21 for {
22 err := devianter.UpdateCSRF()
23 if err != nil {
24 println(err.Error())
25 }
26 time.Sleep(12 * time.Hour)
27 }
28 }()
29
30 app.Router()
31}