Update common.go
This commit is contained in:
parent
e4409ef6a1
commit
f253d81d1b
|
@ -114,8 +114,8 @@ func ReadLines(filename string) ([]string, error) {
|
|||
// ReadLinesOffsetN reads contents from file and splits them by new line.
|
||||
// The offset tells at which line number to start.
|
||||
// The count determines the number of lines to read (starting from offset):
|
||||
// n >= 0: at most n lines
|
||||
// n < 0: whole file
|
||||
// n >= 0: at most n lines
|
||||
// n < 0: whole file
|
||||
func ReadLinesOffsetN(filename string, offset uint, n int) ([]string, error) {
|
||||
f, err := os.Open(filename)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue