We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ef5bb6 commit fc262c6Copy full SHA for fc262c6
README.md
@@ -1,2 +1,22 @@
1
# helloworld-go
2
-Hello world go
+
3
+Simple hello world go web application
4
5
+## Build
6
7
+```bash
8
+go build
9
+```
10
11
+## Run
12
13
14
+./helloworld-go
15
16
17
+## Test
18
19
20
+$ curl localhost:8080/
21
+Go is the best language in the world
22
main.go
@@ -0,0 +1,15 @@
+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, "Go is the best language in the world\n")
0 commit comments