Initial Commit

This commit is contained in:
2024-05-15 13:42:38 -05:00
parent 1be02c96ff
commit 9aa99fdb91
14 changed files with 799 additions and 232 deletions

16
util/files.go Normal file
View File

@@ -0,0 +1,16 @@
package util
import "io/ioutil"
func ReadFile(path string) (string, error) {
var bytesRead []byte
var err error
if bytesRead, err = ioutil.ReadFile(path); err != nil {
return "", err
}
return string(bytesRead), nil
}
func WritePWFile(path, contents string) error {
return ioutil.WriteFile(path, []byte(contents), 0600)
}