Skip to content

Add NewInstance to reflect utils

Alejo Carballude requested to merge feature/reflect_new_instance into master

Related tasks

Context

When working with empty interfaces, it sometimes is necessary to create a new instance of the same type.

Change

A NewInstance function has been introduced in the pkg/utils/reflect package that create a new instance of the same type as the input value.

Other information

Additional documentation

Merge request reports