We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d3c13d commit c46ef46Copy full SHA for c46ef46
2 files changed
README.md
@@ -1 +1,3 @@
1
-This is a test commit
+# GoFazs
2
+
3
+Deploy your own blog in as little as 15 seconds.
main.go
@@ -6,14 +6,13 @@ import (
6
"net/http"
7
)
8
9
-// hello world, the web server
10
-func HelloServer(w http.ResponseWriter, req *http.Request) {
11
- io.WriteString(w, "hello, world!\n")
+func MainPage(w http.ResponseWriter, req *http.Request) {
+ io.WriteString(w, "Welcome to GoBlog!\n")
12
}
13
14
func main() {
15
- http.HandleFunc("/hello", HelloServer)
16
- err := http.ListenAndServe(":12345", nil)
+ http.HandleFunc("/", MainPage)
+ err := http.ListenAndServe(":1337", nil)
17
if err != nil {
18
log.Fatal("ListenAndServe: ", err)
19
0 commit comments