From e176d54f26bc9ebabf5ea5f58c0ad2e5de2fbeab Mon Sep 17 00:00:00 2001 From: Salvatore Gonda Date: Thu, 7 Mar 2024 16:12:52 +0100 Subject: [PATCH] Changed type from Builder to Reflection (these what it truly is) --- reflect.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reflect.go b/reflect.go index f3f4b90..6b76fe9 100644 --- a/reflect.go +++ b/reflect.go @@ -105,7 +105,7 @@ func (ref Reflect) builderType() { count := 0 index := len(ref.Words) for _, field := range fields { - if ref.isNotAnonymous(field) && ref.isNotDefinitions(field) && ref.isBpmnBuilder(field) { + if ref.isNotAnonymous(field) && ref.isNotDefinitions(field) && ref.isBpmnReflection(field) { ref.Builder[count] = field.Name ref.Words[index] = utils.Split(ref.Builder[count]) count++ @@ -170,6 +170,6 @@ func (ref *Reflect) isNotAnonymous(field reflect.StructField) bool { } // isBpmnBuilder ... -func (ref *Reflect) isBpmnBuilder(field reflect.StructField) bool { - return field.Type.Name() == "Builder" +func (ref *Reflect) isBpmnReflection(field reflect.StructField) bool { + return field.Type.Name() == "Reflection" }