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: parse_dpkg_info_files.go
    path of file: ./repos/syft/syft/pkg/cataloger/debian
    
    the code of the file until where you have to start completion: package debian

import (
	"bufio"
	"io"
	"strings"

	"github.com/anchore/syft/s
    
func parseDpkgConffileInfo(reader io.Reader) (findings []pkg.DpkgFileRecord) {
	scanner := bufio.NewScanner(reader)

	for scanner.Scan() {
		line := strings.Trim(scanner.Text(), " \n")
		fields := strings.SplitN(line, " ", 2)

		if line == "" {
			continue
		}

		var path string
		if len(fields) >= 1 {
			path = strings.TrimSpace(fields[0])
			if !strings.HasPrefix(path, "/") {
				path = "/" + path
			}
		}

		var digest *file.Digest
		if len(fields) >= 2 {
			digest = &file.Digest{
				Algorithm: "md5",
				Value:     strings.TrimSpace(fields[1]),
			}
		}

		if path != "" {
			record := pkg.DpkgFileRecord{
				Path:         path,
				IsConfigFile: true,
			}
			if digest != nil {
				record.Digest = digest
			}
			findings = append(findings, record)
		}
	}
	return findings
}