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: registry.go
    path of file: ./repos/kubeedge/vendor/github.com/vmware/govmomi/vim25/types
    
    the code of the file until where you have to start completion: /*
Copyright (c) 2014 VMware, Inc. All Rights Reserved.

Licensed under the Apache License, V
    
func TypeFunc() Func {
	return func(name string) (reflect.Type, bool) {
		typ, ok := t[name]
		if !ok {
			// The /sdk endpoint does not prefix types with the namespace,
			// but extension endpoints, such as /pbm/sdk do.
			name = strings.TrimPrefix(name, "vim25:")
			typ, ok = t[name]
		}
		return typ, ok
	}
}