Skip to content

Fix issues #36 and #37 relative to the usage of def.Is#38

Merged
sarulabs merged 1 commit into
masterfrom
fix_type_issues
Jun 29, 2025
Merged

Fix issues #36 and #37 relative to the usage of def.Is#38
sarulabs merged 1 commit into
masterfrom
fix_type_issues

Conversation

@sarulabs

Copy link
Copy Markdown
Owner
  • Get will now panic if called with a bad parameter instead of returning the first object in the container
  • The behavior of SetIs changed to avoid calling reflect.TypeOf if the input is already a reflect.Type. It also panics if given a nil interface as its type can not be resolved.

- Get will now panic if called with a bad parameter instead of returning the first object in the container
- The behavior of SetIs changed to avoid calling reflect.TypeOf if the input is already a reflect.Type. It also panics if given a nil interface as its type can not be resolved.
@sarulabs sarulabs merged commit ea4739b into master Jun 29, 2025
2 checks passed
@sarulabs sarulabs deleted the fix_type_issues branch June 29, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant