Versions in this module Expand all Collapse all v0 v0.8.0 Mar 24, 2026 Changes in this version + func SafeAppendFile(path string, perm os.FileMode) (*os.File, error) + func SafeCreateFile(path string, perm os.FileMode) (*os.File, error) + func SafeOpenUserFile(path string) (*os.File, error) + func SafePost(rawURL, contentType string, body []byte, timeout time.Duration) (*http.Response, error) + func SafeReadFile(baseDir, filename string) ([]byte, error) + func SafeReadUserFile(path string) ([]byte, error) + func SafeWriteFile(path string, data []byte, perm os.FileMode) error + func TouchFile(path string)