mirror of https://github.com/JustKato/FreePad.git
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")
|
||
|
|
||
|
}
|