lib/file/line.go
Function extractIOBottomLines
has 5 return statements (exceeds 4 allowed). Open
Open
func extractIOBottomLines(rd io.Reader, n int) ([]string, error) {
if n <= 0 {
return nil, errors.New("n should be greater than 0")
}
var (
Function extractIOTopLines
has 5 return statements (exceeds 4 allowed). Open
Open
func extractIOTopLines(rd io.Reader, n int) ([]string, error) {
if n <= 0 {
return nil, errors.New("n should be greater than 0")
}
result := make([]string, 0)