mirror of
https://github.com/pushbits/server.git
synced 2025-05-28 00:06:41 +02:00
Restructure project layout
This commit is contained in:
parent
a49db216d5
commit
9a4a096526
32 changed files with 35 additions and 35 deletions
12
internal/runner/runner.go
Normal file
12
internal/runner/runner.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
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))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue