-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
27 lines (24 loc) · 1.59 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", HelloServer)
http.ListenAndServe(":8080", nil)
}
func HelloServer(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "*****************************************************\n")
fmt.Fprintf(w, "███████████ ████████████ ████████ ████████\n")
fmt.Fprintf(w, "███████████ ███████████████ █████████ █████████\n")
fmt.Fprintf(w, " █████ ████ █████ ████████ ████████ \n")
fmt.Fprintf(w, " █████ ███████████ ████ ███ ███ ████ \n")
fmt.Fprintf(w, " █████ ███████████ ████ ███████ ████ \n")
fmt.Fprintf(w, " █████ ████ █████ ████ █████ ████ \n")
fmt.Fprintf(w, "███████████ ███████████████ ██████ ███ ██████\n")
fmt.Fprintf(w, "███████████ ████████████ ██████ █ ██████\n")
fmt.Fprintf(w, "*****************************************************\n")
fmt.Fprintf(w, "Hello World!\n")
fmt.Fprintf(w, "And thanks for all the fish!\n")
fmt.Fprintf(w, "And thanks for all the fish!\n")
}