Documentation ¶
Index ¶
- Constants
- func FileExists(fileName string) bool
- func IsRegular(fileName string) bool
- func IsWritable(fm os.FileMode) bool
- func ReadFile(fileName string) ([]byte, error)
- func Rename(oldname, newname string) error
- func WriteAndBackup(fileName string, data []byte) error
- func WriteFile(fileName string, data []byte, perm os.FileMode) error
- func WriteFileRW(fileName string, data []byte) error
- func WriteFileReadOnly(fileName string, data []byte) error
- func WriteFileWriteOnly(fileName string, data []byte) error
Constants ¶
View Source
const ( FILE_RW = os.FileMode(0666) FILE_W = os.FileMode(0222) FILE_R = os.FileMode(0444) )
We don't concern ourselves with executable files here.
Variables ¶
This section is empty.
Functions ¶
func IsWritable ¶
func WriteAndBackup ¶
func WriteFileRW ¶
Write a file that has both read and write flags set.
func WriteFileReadOnly ¶
Write file with the read-only flag set.
func WriteFileWriteOnly ¶
Write file with the write-only flag set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.