Source File
main.go
Belonging Package
github.com/limanmys/render-engine
package main
import (
)
/*
Main
Initialization point of application
*/
func main() {
// This application needs to run as root
:= linux.Execute("id -u")
if strings.Trim(, "\n") != "0" {
log.Fatalln("You need to run the service as root")
}
// Initialization of logger
logger.InitLogger()
defer logger.Logger().Sync()
// Read environment file
:= godotenv.Load(constants.CORE_PATH + "/.env")
if != nil {
logger.Sugar().Fatalln("Cannot read Liman environment file")
}
// Clean long standing sessions from memory
go bridge.Clean()
// Init cronjobs
go cron_jobs.InitCronJobs()
// Start web server
utils.CreateServer()
}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |