mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
251 B
Go
18 lines
251 B
Go
2 years ago
|
package cmd
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
"github.com/synctv-org/synctv/cmd/flags"
|
||
|
)
|
||
|
|
||
|
func InitGinMode() error {
|
||
|
if flags.Dev {
|
||
|
gin.SetMode(gin.DebugMode)
|
||
|
} else {
|
||
|
gin.SetMode(gin.ReleaseMode)
|
||
|
}
|
||
|
gin.ForceConsoleColor()
|
||
|
|
||
|
return nil
|
||
|
}
|