Skip to content

Fix miscellaneous value/pointer receiver mismatches#8652

Merged
jsha merged 1 commit intomainfrom
value-receivers
Feb 27, 2026
Merged

Fix miscellaneous value/pointer receiver mismatches#8652
jsha merged 1 commit intomainfrom
value-receivers

Conversation

@aarongable
Copy link
Contributor

Update the Linter's Check and CheckCRL methods to use a pointer receiver, to match the fact that New returns a pointer to a Linter, and that the linter itself contains various large pointer/interface fields.

Update Observer's Start() method to use a pointer receiver, to match the fact that obs_conf.MakeObserver returns a pointer.

Update pcks11helper's MockCtx methods to use pointer receivers, to match the fact that NewMock returns a pointer.

Update the VA's getAddrs method to use a pointer receiver, to match every other method on the VA.

Do not update various MarshalJSON and UnmarshalJSON methods to match each other, since the expectation there is that all UnmarshalJSON methods use pointer receivers while all MarshalJSON methods use value receivers.

@aarongable aarongable marked this pull request as ready for review February 27, 2026 01:12
@aarongable aarongable requested a review from a team as a code owner February 27, 2026 01:12
@jsha jsha merged commit 1c34e3e into main Feb 27, 2026
28 checks passed
@jsha jsha deleted the value-receivers branch February 27, 2026 21:42
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.

3 participants