package model import ( "log" "os" ) var storage string func InitStorage() { var err error storage, err = os.MkdirTemp("", "ceres-") if err != nil { log.Fatal(err) } log.Printf("Storage directory: %s\n", storage) } func RemoveStorage() { var err error = os.RemoveAll(storage) if err != nil { log.Printf("Failed to remove temporary storage folder: %v\n", err) } else { log.Println("Removed temporary storage folder") } }