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: stream_reader.go
    path of file: ./repos/benthos/internal/config
    
    the code of the file until where you have to start completion: package config

import (
	"bytes"
	"errors"
	"fmt"
	"io/fs"
	"os"
	"path/filepath"
	"strings"
	"time"

	"gopkg.in/yaml.v3"

	"github.com/benthosdev/benthos/v4/internal/bu
    
func (r *Reader) readStreamFileConfig(path string) (conf stream.Config, lints []string, err error) {
	var confBytes []byte
	var dLints []docs.Lint
	var modTime time.Time
	if confBytes, dLints, modTime, err = ReadFileEnvSwap(r.fs, path, os.LookupEnv); err != nil {
		return
	}
	for _, l := range dLints {
		lints = append(lints, l.Error())
	}
	r.modTimeLastRead[path] = modTime

	var rawNode *yaml.Node
	if rawNode, err = docs.UnmarshalYAML(confBytes); err != nil {
		return
	}

	var rawSource any
	_ = rawNode.Decode(&rawSource)

	confSpec := append(docs.FieldSpecs{}, r.specStreamOnly...)
	confSpec = append(confSpec, test.ConfigSpec())

	if !bytes.HasPrefix(confBytes, []byte("# BENTHOS LINT DISABLE")) {
		for _, lint := range confSpec.LintYAML(r.lintCtx(), rawNode) {
			lints = append(lints, fmt.Sprintf("%v%v", path, lint.Error()))
		}
	}

	var pConf *docs.ParsedConfig
	if pConf, err = confSpec.ParsedConfigFromAny(rawNode); err != nil {
		return
	}

	conf, err = stream.FromParsed(r.lintConf.DocsProvider, pConf, rawSource)
	return
}