main.go 508 B

1234567891011121314151617181920212223242526272829303132
  1. package main
  2. import (
  3. "skunkyart/app"
  4. "skunkyart/static"
  5. "time"
  6. "git.macaw.me/skunky/devianter"
  7. )
  8. func main() {
  9. app.Release.Version = "1.3.2"
  10. app.Release.Description = "Two API endpoints and template embedding into binary"
  11. go app.RefreshInstances()
  12. app.ExecuteCommandLineArguments()
  13. app.ExecuteConfig()
  14. static.CopyTemplatesToMemory()
  15. go func() {
  16. for {
  17. err := devianter.UpdateCSRF()
  18. if err != nil {
  19. println(err.Error())
  20. }
  21. time.Sleep(12 * time.Hour)
  22. }
  23. }()
  24. app.Router()
  25. }