In Go, it’s important to be aware of potential bugs when embedding pointers within structs. This article explores such a scenario and provides alternative solutions to avoid confusion and errors.
Since the introduction of generics in Go 1.18, there have been discussions about adding new helper functions to the standard library to cover most frequent operations. After more than a year, two new libraries with generics will be added12 into the Go standard library starting from Go 1.21.
Throughout the years of using kubernetes as a developer I’ve collected a bunch of useful commands that helped me to debug issues and have better understanding of what is happening in the cluster.
You’ve likely been in this situation before. You make some minor code fixes, do git commit --amend to add them to the current commit, and do git push --force. Then, you happily open pull request and see that you’ve deleted you’re colleagues commit.😩