mirror of
https://github.com/JustKato/FreePad.git
synced 2026-03-15 08:49:46 +02:00
21 lines
252 B
Go
21 lines
252 B
Go
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")
|
|
|
|
}
|