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

Add generic object retrieval #353

Merged
merged 4 commits into from
Jul 5, 2024
Merged

Add generic object retrieval #353

merged 4 commits into from
Jul 5, 2024

Conversation

stmcginnis
Copy link
Owner

Now that we've moved to Go 1.18 as a minimum we can use generics. This consolidates a lot of the GetXXX calls to use common code to retrieve API objects.

Also cleans up some other code and fixes a couple small bugs.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Now that the minimum Go version has been raised to 1.1 we can use
generics. This allows us to simplify a lot of the GetXXX calls to use
common code and avoid a lot of duplication.

Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
@stmcginnis stmcginnis merged commit 7fac89e into main Jul 5, 2024
2 checks passed
@stmcginnis stmcginnis deleted the generic-get branch July 5, 2024 16:25
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