Skip to content

proc: simplify and rename structMember - #4159

Merged
derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:structmember
Oct 8, 2025
Merged

derekparker merged 1 commit into
go-delve:masterfrom
aarzilli:structmember

Conversation

@aarzilli

Copy link
Copy Markdown
Member

With the recent changes in 1e3ccee (#4118) structMember became largely
reduntant with the new findStructMemberOrMethod. This commit simplifies
the code of structMember so that it does not handle embedded structs
and interfaces and changes its name to structField so that it can be
kept as an internal lightweight version of findStructMemberOrMethod.

Comment thread pkg/proc/variables.go Resolved
Comment thread pkg/proc/variables.go Resolved
With the recent changes in 1e3ccee (go-delve#4118) structMember became largely
reduntant with the new findStructMemberOrMethod. This commit simplifies
the code of structMember so that it does not handle embedded structs
and interfaces and changes its name to structField so that it can be
kept as an internal lightweight version of findStructMemberOrMethod.

@derekparker derekparker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@derekparker
derekparker merged commit ba539b8 into go-delve:master Oct 8, 2025
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.

2 participants