You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The constructor must return pointer (ex: &Node{})
func RegisterNode(namespace string, meta *engine.NodeRegister) {
engine.QNodeList[namespace] = meta
}
// The constructor must return pointer (ex: &any)
func RegisterInterface(namespace string, meta *engine.InterfaceRegister) {
if strings.HasPrefix(namespace, "BPIC/") == false {
panic(namespace + ": The first parameter of 'RegisterInterface' must be started with BPIC to avoid name conflict. Please name the interface similar with 'templatePrefix' for your module that you have set on 'blackprint.config.js'.")