You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: text_csv.go
    path of file: ./repos/gotosocial/vendor/github.com/gabriel-vasile/mimetype/internal/magic
    
    the code of the file until where you have to start completion: package magic

import (
	"bytes"
	"encoding/csv"
	"errors"
	"io"
)

// Csv matches a comma-separated values file.
func Csv(raw []byte, limit uint32) bool {
	return sv(raw, ',', limit)
}

// Tsv matches a tab-separated values file.
func Tsv(raw []byte, limit uint32) bool {
	re
    
func sv(in []byte, comma rune, limit uint32) bool {
	r := csv.NewReader(dropLastLine(in, limit))
	r.Comma = comma
	r.ReuseRecord = true
	r.LazyQuotes = true
	r.Comment = '#'

	lines := 0
	for {
		_, err := r.Read()
		if errors.Is(err, io.EOF) {
			break
		}
		if err != nil {
			return false
		}
		lines++
	}

	return r.FieldsPerRecord > 1 && lines > 1
}