Documentation
¶
Index ¶
- func Append(filepath string, data []byte) (err error)
- func Exists(filepath string) (exists bool)
- func Read(filepath string) (data []byte, err error)
- func ReadLines(filepath string) (lines [][]byte, err error)
- func ReadN(filepath string, nBytes int64) (data []byte, err error)
- func Size(filepath string) (size int64)
- func Write(filepath string, data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadN ¶
ReadN returns a byte slice of the first nBytes of the named file. If nBytes is negative, the entire file size is used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.