Initial commit: conversaions, status, version
This commit is contained in:
23
main.go
Normal file
23
main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user