code: func objectRegistered(objName string) (string, bool) {
  	objName = extractTypeName(objName)
  	_, ok := objectsRegister[objName]
  	return objName, ok
  }
docs: // check if an object named `objName` has been generated