From 55bbc41117063839b6ba5dc142c27e3358903e31 Mon Sep 17 00:00:00 2001 From: Melvin Vivas Date: Thu, 3 Aug 2023 16:19:36 +0000 Subject: [PATCH] added go.mod --- helloworld/go.mod | 3 +++ http-server/main.go | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 helloworld/go.mod diff --git a/helloworld/go.mod b/helloworld/go.mod new file mode 100644 index 0000000..1ae77f0 --- /dev/null +++ b/helloworld/go.mod @@ -0,0 +1,3 @@ +module helloworld + +go 1.20 diff --git a/http-server/main.go b/http-server/main.go index f7341b4..3a5dc7a 100644 --- a/http-server/main.go +++ b/http-server/main.go @@ -18,3 +18,7 @@ func main() { func rootHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "Hello World") } + +func createHandler(w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "Create") +}