Initial commit - read and serve markdown and static files
This commit is contained in:
commit
8daaa1b330
8 changed files with 180 additions and 0 deletions
20
prose.go
Normal file
20
prose.go
Normal 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))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue