Skip to content
Snippets Groups Projects
Commit db39b63a authored by jotangen's avatar jotangen
Browse files

deleted go.mod, not able to use go 1.13

parent 4895a72a
No related branches found
No related tags found
No related merge requests found
Client 0 → 100755
File added
main.go 0 → 100644
package main
import (
"fmt"
"html"
"log"
"net/http"
"os"
)
//Server that prints halli
func helloHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
}
func main() {
port := os.Getenv("PORT")
port = "8080"
if port == "" {
log.Fatal("$PORT must be set")
}
http.HandleFunc("/", helloHandler)
log.Fatal(http.ListenAndServe(":"+port, nil))
}
package main
func main() {
$END$
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment