package fileutil
import "github.com/bitrise-io/go-utils/fileutil"
Index ¶
- func AppendBytesToFile(pth string, fileCont []byte) error
- func AppendStringToFile(pth string, fileCont string) error
- func GetFileModeOfFile(pth string) (os.FileMode, error)
- func GetFilePermissions(filePth string) (os.FileMode, error)
- func ReadBytesFromFile(pth string) ([]byte, error)
- func ReadStringFromFile(pth string) (string, error)
- func WriteBytesToFile(pth string, fileCont []byte) error
- func WriteBytesToFileWithPermission(pth string, fileCont []byte, perm os.FileMode) error
- func WriteJSONToFile(pth string, fileCont interface{}) error
- func WriteStringToFile(pth string, fileCont string) error
- func WriteStringToFileWithPermission(pth string, fileCont string, perm os.FileMode) error
Functions ¶
func AppendBytesToFile ¶
AppendBytesToFile ...
func AppendStringToFile ¶
AppendStringToFile ...
func GetFileModeOfFile ¶
GetFileModeOfFile ...
this is the "permissions" info, which can be passed directly to functions like WriteBytesToFileWithPermission or os.OpenFile
func GetFilePermissions ¶
GetFilePermissions ...
- alias of: GetFileModeOfFile this is the "permissions" info, which can be passed directly to functions like WriteBytesToFileWithPermission or os.OpenFile
func ReadBytesFromFile ¶
ReadBytesFromFile ...
func ReadStringFromFile ¶
ReadStringFromFile ...
func WriteBytesToFile ¶
WriteBytesToFile ...
func WriteBytesToFileWithPermission ¶
WriteBytesToFileWithPermission ...
func WriteJSONToFile ¶
WriteJSONToFile ...
func WriteStringToFile ¶
WriteStringToFile ...
func WriteStringToFileWithPermission ¶
WriteStringToFileWithPermission ...
Source Files ¶
- Version
- v1.0.15 (latest)
- Published
- May 13, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 months ago –
Tools for package owners.