Documentation ¶
Index ¶
- func CopyDir(srcDir, dstDir string, copyMode Mode) (err error)
- func CopyFile(src, dst string) (err error)
- func CopyPath(srcPath, dstPath string, f os.FileInfo, copyMode Mode) error
- func CopyRegular(srcPath, dstPath string, fileInfo os.FileInfo) error
- func ReadFileLines(filepath string) ([]string, error)
- func ReadLineAt(readIndex int, byteArray []byte) ([]byte, int)
- func ReadLines(byteArray []byte) []string
- func WriteBytesAt(filepath string, bytes []byte, offset int64) error
- func WriteBytesLine(buf *bytes.Buffer, bytes []byte) error
- func WriteFileLine(filePath string, words []string, appended bool) (err error)
- func WriteFileLines(filePath string, lines []string, appended bool) (err error)
- func WriteLine(buf *bytes.Buffer, words ...string) error
- func WriteReaderAt(filepath string, r io.Reader, offset, length int64) error
- type Mode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileLines ¶
ReadFileLines read line from file divide with \n
func WriteBytesLine ¶
WriteBytesLine write bytes to buffer, terminate with newline
func WriteFileLine ¶
WriteLine join all words with spaces, terminate with newline and write to file.
func WriteFileLines ¶
WriteLine join all line to file.
Types ¶
Click to show internal directories.
Click to hide internal directories.