mirror of
https://github.com/pushbits/server.git
synced 2025-05-09 23:17:00 +02:00
Add configuration for HTTP and debug mode
This commit is contained in:
parent
ba0306f384
commit
354ce0c08d
4 changed files with 22 additions and 5 deletions
|
@ -1,10 +1,12 @@
|
|||
package runner
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// Run starts the Gin engine.
|
||||
func Run(engine *gin.Engine) {
|
||||
engine.Run(":8080")
|
||||
func Run(engine *gin.Engine, address string, port int) {
|
||||
engine.Run(fmt.Sprintf("%s:%d", address, port))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue