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

import (
	"fmt"
	"os"
	"path"
	"path/filepath"
	"strings"

	"github.com/werf/werf/pkg/util"
)

type rawOrigin interface {
	configSection() interface{}
	doc() *doc
}

type doc struct {
	Content        []byte
	Line           int
	RenderFilePath string
}

func checkOverflow(m map[string]interface{}, configSection interface{}, doc *doc) 
    
func InterfaceToStringArray(stringOrStringArray, configSection interface{}, doc *doc) ([]string, error) {
	if stringOrStringArray == nil {
		return []string{}, nil
	} else if val, ok := stringOrStringArray.(string); ok {
		return []string{val}, nil
	} else if interfaceArray, ok := stringOrStringArray.([]interface{}); ok {
		var stringArray []string
		for _, interf := range interfaceArray {
			if val, ok := interf.(string); ok {
				stringArray = append(stringArray, val)
			} else {
				return nil, newDetailedConfigError(fmt.Sprintf("single string or array of strings expected, got `%v`!", stringOrStringArray), configSection, doc)
			}
		}
		return stringArray, nil
	} else {
		return nil, newDetailedConfigError(fmt.Sprintf("single string or array of strings expected, got `%v`!", stringOrStringArray), configSection, doc)
	}
}