Archived
1
This commit is contained in:
2024-12-19 18:48:26 +03:00
commit 2186f92263
32 changed files with 1498 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package utils
import "os"
func SaveStaticFile(path string, data []byte) error {
return os.WriteFile(path, data, 0644)
}
func CreateDir(path string) error {
return os.Mkdir(path, 0755)
}
func RemoveFile(path string) error {
return os.Remove(path)
}