refactor: add cache folder on init

This commit is contained in:
2025-04-06 22:12:11 -03:00
parent dc5dd34835
commit f0d548aa3b

View File

@@ -2,10 +2,14 @@ package main
import ( import (
"net/http" "net/http"
"os"
) )
func main() { func main() {
_, err := os.Stat("./.cache")
if err != nil {
os.Mkdir("./.cache", 0700)
}
http.HandleFunc("/", RequestHandler) http.HandleFunc("/", RequestHandler)
http.ListenAndServe(":3333", nil) http.ListenAndServe(":3333", nil)
} }