24 lines
336 B
Go
24 lines
336 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"code.severnaya.net/kordophone-mock/v2/web"
|
|
)
|
|
|
|
func main() {
|
|
log.Println("Initializing")
|
|
|
|
s := web.NewMockHTTPServer()
|
|
httpServer := &http.Server{
|
|
Addr: ":5738",
|
|
Handler: s,
|
|
}
|
|
|
|
// Populate with test data
|
|
s.Server.PopulateWithTestData()
|
|
|
|
log.Fatal(httpServer.ListenAndServe())
|
|
}
|