initial import

This commit is contained in:
SourceFellows
2020-08-21 06:26:40 +02:00
commit e223458dd4
423 changed files with 9871 additions and 0 deletions

View File

@ -0,0 +1,16 @@
package main
import "net/http"
func myHandler(res http.ResponseWriter, req *http.Request) {
if req.Method == http.MethodGet {
res.Write([]byte("Hello World"))
} else {
res.WriteHeader(http.StatusMethodNotAllowed)
}
}
func main() {
http.HandleFunc("/", myHandler)
http.ListenAndServe(":8080", nil)
}