commit d556efa15b2bd107a4e07d9b3dc0050a460d5dfa Author: Lucas Schumacher Date: Wed Jul 31 13:25:45 2024 -0400 First commit 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) +}