4
0

added example

This commit is contained in:
Benjamin Böhmke
2019-11-12 21:02:43 +01:00
parent e462a26e19
commit 6893cd3495
6 changed files with 38 additions and 0 deletions

10
example/main.go Normal file
View File

@@ -0,0 +1,10 @@
package main
import "net/http"
func main() {
http.HandleFunc("/", func(writer http.ResponseWriter, _ *http.Request) {
writer.Write([]byte("It works!"))
})
http.ListenAndServe(":8080", nil)
}