Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All methods on models as pointer receivers #1325

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

Mjaethers
Copy link
Contributor

Motivation and Context

Fixes #1272.
In the model package many structs have methods on both value and pointer receivers. Having mixed receivers is for consistencies sake not ideal, but since many of these structs are also quite large, and using value receivers implies copying data, using pointer receivers would be slightly more performant.

Description

Any value receivers were changed to pointer receivers, usually this was as simple as changing the signature. Any superfluous receivers were also removed.

Steps for Testing

Nothing should have changed.

Screenshots

Copy link

github-actions bot commented Feb 1, 2024

Your Testserver will be ready at https://1325.test.live.mm.rbg.tum.de in a few minutes.

Logins
Kurs1 Kurs2 Kurs3 Kurs4
public public loggedin enrolled
prof1 prof1 prof2 prof1
prof2
student1
student2
student3
student1
student2
student2
student3
student1
student2

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.

All methods on models should use pointer receivers
1 participant