From 3b604d419f6c046b42bd2e9339e4ded47052e4a8 Mon Sep 17 00:00:00 2001 From: Salvatore Gonda Date: Wed, 13 Mar 2024 19:21:58 +0100 Subject: [PATCH] testing --- builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder.go b/builder.go index 7ffa7fa..37471de 100644 --- a/builder.go +++ b/builder.go @@ -85,9 +85,9 @@ func (bldr *Builder) Defaults(p interface{}, c *gobpmn_count.Quantities) { counter := reflect.ValueOf(&c).Elem() // Get the number of processes - //numProcess := counter.FieldByName("Process") + numProcess := counter.Elem().FieldByName("Process").Int() - log.Printf("Number of processes: %+v", counter.Elem().FieldByName("Process").Int()) + log.Printf("Number of processes: %+v", numProcess) // Allocate a temporary variable with type of the struct. // el.Elem() is the value contained in the interface