Initialise the module, write my first request

This commit is contained in:
Lewis Dale committed 2024-05-05 08:25:27 +01:00
1 parent e2067dfa78
commit a4bf9c140f
2 files changed
+15

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
module lewisdale.dev/oopsie
go 1.22.2
+12
View File
@@ -0,0 +1,12 @@
package main
import (
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, World!"))
})
http.ListenAndServe(":8000", nil)
}