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

import (
	"fmt"
	"reflect"
	"sort"
	"strings"
	"time"

	"goyave.dev/goyave/v4/lang"
	"goyave.dev/goyave/v4/util/sliceu
    
func makeGenericSlice(original interface{}) ([]interface{}, bool) {
	list := reflect.ValueOf(original)
	if list.Kind() != reflect.Slice {
		return nil, false
	}
	length := list.Len()
	newSlice := make([]interface{}, 0, length)
	for i := 0; i < length; i++ {
		newSlice = append(newSlice, list.Index(i).Interface())
	}
	return newSlice, true
}