Add server

This commit is contained in:
Lucas Schumacher 2023-10-24 16:06:17 -04:00
parent 05e234876d
commit 72f37b478e
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
main

13
main.go Normal file
View File

@ -0,0 +1,13 @@
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, world!")
})
http.ListenAndServe(":80", nil)
}