Initial commit - read and serve markdown and static files

This commit is contained in:
Naman Sood 2021-02-06 16:27:00 -05:00
commit 8daaa1b330
8 changed files with 180 additions and 0 deletions

20
prose.go Normal file
View file

@ -0,0 +1,20 @@
package main
import (
"log"
"net/http"
)
func main() {
log.Printf("Hello, world! This is Prose.")
s, err := newServer()
if err != nil {
log.Fatal(err)
}
http.HandleFunc("/", s.router)
log.Fatal(http.ListenAndServe(":8080", nil))
}