From d556efa15b2bd107a4e07d9b3dc0050a460d5dfa Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Wed, 31 Jul 2024 13:25:45 -0400 Subject: [PATCH] First commit --- go.mod | 3 +++ main.go | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 go.mod create mode 100644 main.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..73280be --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.kealoha.me/lks/lenslocked + +go 1.22.5 diff --git a/main.go b/main.go new file mode 100644 index 0000000..3fc3a45 --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "fmt" + "net/http" +) + +func handlerFunc(w http.ResponseWriter, r *http.Request) { + fmt.Fprint(w, "

Welcome to my awesome site!

") +} + +func main() { + http.HandleFunc("/", handlerFunc) + fmt.Println("Starting the server on :3000...") + http.ListenAndServe(":3000", nil) +}