mirror of
https://github.com/pushbits/server.git
synced 2025-04-30 18:57:17 +02:00
12 lines
202 B
Go
12 lines
202 B
Go
package runner
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// Run starts the Gin engine.
|
|
func Run(engine *gin.Engine, address string, port int) {
|
|
engine.Run(fmt.Sprintf("%s:%d", address, port))
|
|
}
|