Documentation ¶
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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ReadStringFromFile ¶
ReadStringFromFile ...
func WriteBytesToFile ¶
WriteBytesToFile ...
func WriteBytesToFileWithPermission ¶
WriteBytesToFileWithPermission ...
func WriteJSONToFile ¶
WriteJSONToFile ...
func WriteStringToFile ¶
WriteStringToFile ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.