Documentation
¶
Index ¶
- func Append(name string, data []byte, options ...AppendOptionsFn) (int, error)
- func Exists(name string) bool
- func ExistsErr(name string) (bool, error)
- func Lines(filePath string) (lines []string, err error)
- func LinesChan(filePath string, chSize int) (ch chan string, err error)
- func Open(f string) *os.File
- func ScanLines(data []byte, atEOF bool) (advance int, token []byte, err error)
- type AppendOptions
- type AppendOptionsFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanLines ¶
ScanLines is a split function for a Scanner that returns each line of text, with end-of-line marker. The returned line may be empty. The end-of-line marker is one optional carriage return followed by one mandatory newline. In regular expression notation, it is `\r?\n`. The last non-empty line of input will be returned even if it has no newline.
Types ¶
type AppendOptions ¶
type AppendOptions struct {
BackOffset int64
}
type AppendOptionsFn ¶
type AppendOptionsFn func(*AppendOptions)
func WithBackOffset ¶
func WithBackOffset(backOffset int64) AppendOptionsFn
Click to show internal directories.
Click to hide internal directories.