16 lines
255 B
Go
16 lines
255 B
Go
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)
|
|
}
|