2020-03-18 15:20:48 -03:00

16 lines
212 B
Go

package swagger
import (
"fmt"
"log"
"net/http"
)
func RunServer(port int) error {
log.Printf("Mock Server started")
router := NewRouter()
return http.ListenAndServe(fmt.Sprintf(":%d", port), router)
}