Skip to content

Deprecate old pointer helpers, use generic one#579

Merged
bentranter merged 2 commits intodigitalocean:mainfrom
bentranter:btranter/add-ptr-to-generic-func
Nov 14, 2022
Merged

Deprecate old pointer helpers, use generic one#579
bentranter merged 2 commits intodigitalocean:mainfrom
bentranter:btranter/add-ptr-to-generic-func

Conversation

@bentranter
Copy link
Copy Markdown
Member

@bentranter bentranter commented Nov 10, 2022

Deprecates and changes all of the uses of the various pointer-to style helpers in favour of using a generic one.

I've seen more and more of the *type struct fields pop up in new features, so I figure this might offer a more consistent way to create a pointer to a type, rather having to use an old type specific one or have users create their own.

Most of this is PR is changing the use of old test helpers to use the new func. The implementation of the new func here.

Deprecates and changes all of the uses of the various pointer-to style
helpers in favour of using a generic one.

I've seen more and more of the `*type` struct fields pop up in new
features, so I figure this might offer a more consistent way to create a
pointer to a type, rather having to use an old type specific one or have
users create their own.
@bentranter bentranter changed the title Deprecate old pointer helps, use generic one Deprecate old pointer helpers, use generic one Nov 10, 2022
Copy link
Copy Markdown
Contributor

@ChiefMateStarbuck ChiefMateStarbuck left a comment

Choose a reason for hiding this comment

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

Generics for the win 🥇

@bentranter bentranter merged commit ae2e953 into digitalocean:main Nov 14, 2022
@bentranter bentranter deleted the btranter/add-ptr-to-generic-func branch November 14, 2022 19: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.

3 participants