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: tools.go
    path of file: ./repos/ksync/pkg/debug
    
    the code of the file until where you have to start completion: package debug

import (
	"fmt"
	"path/filepath"
	"reflect"
	"runtime"

	"github.com/fatih/structs"
	"github.com/pkg/errors"
	log "github.com/sirupsen/logrus"
	"gopkg.in/yaml.v2"
)

// YamlString is 
    
func ErrorOut(msg string, err error, thing interface{}) error {
	_, fn, line, _ := runtime.Caller(1)

	return errors.Wrap(
		err,
		fmt.Sprintf("msg: %s\nlocation: %s:%d\nstruct: %s\nnext",
			msg,
			fn,
			line,
			thing,
		),
	)
}