Skip to content

Commit c46ef46

Browse files
committed
Update starting code
1 parent 2d3c13d commit c46ef46

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
This is a test commit
1+
# GoFazs
2+
3+
Deploy your own blog in as little as 15 seconds.

main.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ import (
66
"net/http"
77
)
88

9-
// hello world, the web server
10-
func HelloServer(w http.ResponseWriter, req *http.Request) {
11-
io.WriteString(w, "hello, world!\n")
9+
func MainPage(w http.ResponseWriter, req *http.Request) {
10+
io.WriteString(w, "Welcome to GoBlog!\n")
1211
}
1312

1413
func main() {
15-
http.HandleFunc("/hello", HelloServer)
16-
err := http.ListenAndServe(":12345", nil)
14+
http.HandleFunc("/", MainPage)
15+
err := http.ListenAndServe(":1337", nil)
1716
if err != nil {
1817
log.Fatal("ListenAndServe: ", err)
1918
}

0 commit comments

Comments
 (0)