Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/internal_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,9 @@ func isError(inType reflect.Type) bool {
}

func getFunctionName(i interface{}) (name string, isMethod bool) {
if s, ok := i.(fmt.Stringer); ok {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we do decided to accept this change, I think we would have to check for fmt.Stringer after the function pointer check due to non determinism concerns.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, updated!

return s.String(), false
}
if fullName, ok := i.(string); ok {
return fullName, false
}
Expand Down