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

Update Golang to 1.18 #17

Closed
TheRealSpaceShip opened this issue Jul 13, 2022 · 0 comments
Closed

Update Golang to 1.18 #17

TheRealSpaceShip opened this issue Jul 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@TheRealSpaceShip
Copy link
Contributor

To be in touch with the latest changes in Golang and to avoid a huge amount of changes in the future we need to update Golang to 1.18.
The new version of Golang introduces a new language feature - generics. We could use it to improve the codebase of Hub CLI in the future. As for today, we could start to use a cool library https://github.com/samber/lo which is a Lodash-style Go library based on Go 1.18+ Generics. This library could replace the main part of the util package which is not covered by unit tests.
Also as part of this update, we need to get rid of the go-bindata tool because it doesn't support anymore and Golang has the native support of Embedded Files in the core library since version 1.16.

@TheRealSpaceShip TheRealSpaceShip added the enhancement New feature or request label Jul 13, 2022
@TheRealSpaceShip TheRealSpaceShip self-assigned this Jul 13, 2022
TheRealSpaceShip added a commit that referenced this issue Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant