]>
src.bluestatic.org Git - armadillo.git/blob - src/server.go
9 const kFrontEndFiles
= "/Users/rsesek/Projects/armadillo/out/fe/"
11 func testHandler(connection
*http
.Conn
, request
*http
.Request
) {
12 fmt
.Print("Got a request");
13 io
.WriteString(connection
, "Hello world")
17 mux
:= http
.NewServeMux()
18 mux
.Handle("/fe", http
.FileServer(kFrontEndFiles
, ""))
19 mux
.HandleFunc("/test", testHandler
)
21 error
:= http
.ListenAndServe(":8084", mux
)
22 fmt
.Printf("error %v", error
)