Source File
main.go
Belonging Package
github.com/limanmys/render-engine
package mainimport ()/*MainInitialization 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 loggerlogger.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 memorygo bridge.Clean()// Init cronjobsgo cron_jobs.InitCronJobs()// Start web serverutils.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. |