First commit

This commit is contained in:
Lucas Schumacher 2024-07-31 13:25:45 -04:00
commit d556efa15b
2 changed files with 19 additions and 0 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.kealoha.me/lks/lenslocked
go 1.22.5

16
main.go Normal file
View File

@ -0,0 +1,16 @@
package main
import (
"fmt"
"net/http"
)
func handlerFunc(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "<h1>Welcome to my awesome site!</h1>")
}
func main() {
http.HandleFunc("/", handlerFunc)
fmt.Println("Starting the server on :3000...")
http.ListenAndServe(":3000", nil)
}