diff options
Diffstat (limited to 'src/rest-api/cmd')
| -rw-r--r-- | src/rest-api/cmd/main.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/rest-api/cmd/main.go b/src/rest-api/cmd/main.go index 94fb4bc..bfeb752 100644 --- a/src/rest-api/cmd/main.go +++ b/src/rest-api/cmd/main.go @@ -1,7 +1,14 @@ package main -import "fmt" +import ( + "fmt" + "net/http" +) func main() { - fmt.Println("Hi!") + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Hello, World!") + }) + + http.ListenAndServe(":8080", nil) } |