Adding mock server for simple projects

This commit is contained in:
gfleury
2020-03-18 15:20:48 -03:00
parent aabce9f497
commit 14d4b869a5
13 changed files with 7296 additions and 5 deletions

View File

@ -0,0 +1,15 @@
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)
}