Skip to content

Commit d45fc80

Browse files
committed
Initial code import
1 parent 86f3a18 commit d45fc80

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: main.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"net/http"
6+
)
7+
8+
func handler(w http.ResponseWriter, r *http.Request) {
9+
fmt.Fprint(w, "Hello world!")
10+
}
11+
12+
func main() {
13+
http.HandleFunc("/", handler)
14+
http.ListenAndServe(":8080", nil)
15+
}

0 commit comments

Comments
 (0)