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: create.go
    path of file: ./repos/buildkit/vendor/github.com/containernetworking/cni/pkg/types/internal
    
    the code of the file until where you have to start completion: // Copyright 2016 CNI authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Y
    
func RegisterCreator(versions []string, createFn ResultFactoryFunc) {
	// Make sure there is no creator already registered for these versions
	for _, v := range versions {
		if findCreator(v) != nil {
			panic(fmt.Sprintf("creator already registered for %s", v))
		}
	}
	creators = append(creators, &creator{
		versions: versions,
		createFn: createFn,
	})
}