diff --git a/main.go b/main.go index 9e1bc1a..9779248 100644 --- a/main.go +++ b/main.go @@ -2,10 +2,14 @@ package main import ( "net/http" + "os" ) func main() { - + _, err := os.Stat("./.cache") + if err != nil { + os.Mkdir("./.cache", 0700) + } http.HandleFunc("/", RequestHandler) http.ListenAndServe(":3333", nil) }