main #24

Merged
zeni merged 7 commits from main into develop 2025-04-28 00:47:40 -04:00
Showing only changes of commit 790c840f76 - Show all commits

View file

@ -104,8 +104,8 @@ func (app *App) Run(router *httprouter.Router) {
// check if template engine is enable
TemplateEnableStr := os.Getenv("TEMPLATE_ENABLE")
if TemplateEnableStr == "" {
TemplateEnableStr = "false"
if "" == TemplateEnableStr {
TemplateEnableStr = 'false'
}
TemplateEnable, _ := strconv.ParseBool(TemplateEnableStr)
// if enabled,
@ -119,7 +119,7 @@ func (app *App) Run(router *httprouter.Router) {
}
useHttps, _ := strconv.ParseBool(useHttpsStr)
if runMode == "dev" {
if "dev" == runMode {
fmt.Printf("Welcome to Goffee\n")
if useHttps {
fmt.Printf("Listening on https \nWaiting for requests...\n")