This story was originally published on HackerNoon at:
https://hackernoon.com/what-are-generics-an-introduction-for-beginners.
Generics are a way of writing code that is independent of the specific types being used. Functions and types may now be written to use any of a set of types.
Check more stories related to programming at:
https://hackernoon.com/c/programming.
You can also check exclusive content about
#go,
#golang,
#go-for-beginners,
#go-guide,
#generics,
#what-are-generics,
#generics-explained,
#hackernoon-top-story, and more.
This story was written by:
@Go. Learn more about this writer by checking
@Go's about page,
and for more stories, please visit
hackernoon.com.
In this article we’ll introduce the new language features. We won’t try to cover all the details, but we will hit all the important points.