13 lines
203 B
Go
13 lines
203 B
Go
package generalnode
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Start() {
|
|
router := gin.Default()
|
|
router = registerRoutes(router)
|
|
|
|
router.Run("localhost:8000") // listen and serve on 0.0.0.0:8000
|
|
}
|