Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
deemount committed Mar 13, 2024
1 parent 49aaa2d commit 3b604d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b604d4

Please sign in to comment.