FreePad/main.go

21 lines
252 B
Go
Raw Normal View History

2022-05-18 22:54:07 +03:00
package main
import (
"os"
"github.com/gin-gonic/gin"
)
func main() {
_, isDevelopment := os.LookupEnv("DEV_MODE")
if isDevelopment {
gin.SetMode(gin.ReleaseMode)
}
// Initialize the router
router := gin.Default()
router.Run(":8080")
}