Rename RegisterExternalClass's first argument
@@ -38,9 +38,9 @@ var externalClasses = map[string][]ClassLoader{}
var externalClassLock sync.Mutex
// RegisterExternalClass will add the given class to the global registry of available classes
-func RegisterExternalClass(path string, c ...ClassLoader) {
+func RegisterExternalClass(name string, c ...ClassLoader) {
externalClassLock.Lock()
- externalClasses[path] = c
+ externalClasses[name] = c
externalClassLock.Unlock()
}
