Commit f36be863 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

fix

parent 2b92b7c7
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/hello", handlerHello)
http.ListenAndServe("localhost:8080", nil)
}
func handlerHello(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "hello")
}
\ No newline at end of file
......@@ -2,12 +2,4 @@ module assignment-1
go 1.13
// +heroku goVersion go1.13
/*
require (
github.com/gorilla/mux v1.7.3 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v0.0.5
github.com/spf13/viper v1.4.0
)
*/
\ No newline at end of file
// +heroku goVersion go1.13
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment