This commit is contained in:
I_AM_TINE
2023-01-25 11:07:32 +07:00
commit ddb9307704
7 changed files with 56 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
fs := http.FileServer(http.Dir("./static"))
http.Handle("/", fs)
fmt.Print("Listening on 4000")
err := http.ListenAndServe(":4000", nil)
if err != nil {
log.Fatal(err)
}
}