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: sending.go
    path of file: ./repos/jaeles/core
    
    the code of the file until where you have to start completion: package core

import (
	"fmt"
	"github.com/jaeles-project/jaeles/libs"
	"github.com/jaeles-project/jaeles/sender"
	"github.com/jaeles-project/jaeles/utils"
	"github.com/panjf2000/ants"
	"github.com/thoas/go-funk"
	"strings"
	"sync"
)

func (r *Runner) Sending() {
	if len(r.CRecords) > 0 {
		if r.Sign.Match == "" {
			r.Sign.Match = "all"
		}
		r.SendCRequests()
		if !r.CMatched {
			utils.DebugF("Check request not matched")
			return
		}
		utils.DebugF("Passed check request")
	}

	switch r.SendingType {
	case "local":
		r.LocalSending()
		break
	case "serial":
		r.SendingSerial()
		break
	case "parallels":
		r.SendingParallels()
		break
	default:
		r.SendingParallels()
	}
}

func (r *Runner) LocalSending() {
	utils.DebugF("Start local analyze for: %s", r.Input)
	if !strings.HasPrefix(r.Input, "file://") {
		// just make it up for beautiful output
		r.Input = fmt.Sprintf("http://jaeles.local/?file=%s",
    
func (r *Runner) LocalSending() {
	utils.DebugF("Start local analyze for: %s", r.Input)
	if !strings.HasPrefix(r.Input, "file://") {
		// just make it up for beautiful output
		r.Input = fmt.Sprintf("http://jaeles.local/?file=%s", r.Input)
	}

	record := Record{
		Opt:  r.Opt,
		Sign: r.Sign,
		Request: libs.Request{
			URL: r.Input,
		},
		Response: r.Sign.Response,
	}
	var localScripts []string

	for _, rule := range r.Sign.Rules {
		localScripts = append(localScripts, rule.Detections...)
		if rule.Regex != "" {
			analyze := rule.Regex
			utils.DebugF("LocalRegex: %s", analyze)
			extra, validate := RegexSearch(r.Sign.Response.Beautify, rule.Regex)
			record.DetectString = analyze
			record.IsVulnerable = validate
			record.DetectResult = extra
			record.ExtraOutput = extra

			utils.DebugF("[Detection] %v -- %v", analyze, record.IsVulnerable)
			// deal with vulnerable one here
			record.Output()
		}
	}
	record.RequestScripts("detections", localScripts)
}