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 examples of generics once 1.18 ships #349

Closed
eliben opened this issue Feb 20, 2021 · 2 comments · Fixed by #415
Closed

Add examples of generics once 1.18 ships #349

eliben opened this issue Feb 20, 2021 · 2 comments · Fixed by #415
Assignees

Comments

@eliben
Copy link
Collaborator

eliben commented Feb 20, 2021

The type parameters proposal (generics) has been accepted, and implementation is now ongoing aiming at the 1.18 release.

This is a placeholder issue to note that gobyexample should likely have some examples of generic Go code, once 1.18 is generally available.

@eliben eliben self-assigned this Feb 20, 2021
@eliben
Copy link
Collaborator Author

eliben commented Sep 27, 2021

Reminder: also add examples (as needed) of new generic-using packages, like slices (if these end up landing in 1.18)

@eliben
Copy link
Collaborator Author

eliben commented Feb 5, 2022

It's also important to update (or replace) the collection-functions sample because it specifically talks about the lack of generics

eliben added a commit that referenced this issue Mar 9, 2022
eliben added a commit that referenced this issue Mar 15, 2022
* Add example of Go generics

Fixes #349

* Remove TODO

* Update public link

* Update GitHub action to only build with 1.18-rc1

1.17 won't successfully build the generics example
eliben added a commit that referenced this issue Mar 15, 2022
Now that we have generics, this example is not relevant.

Updates #349
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant