Logo
flag

Know Go (Go 1.23 edition)

Logo

Please rate the book

0.0
Language:
English
pages:
156 pages
Release date:
09/12/2024
Rating:
0.0

Book short description

If you are just starting to learn Go and generics and are wondering why there is so much buzz around them, this course is for you! If you already have some experience with Go but want to master the new possibilities of generics, this course is also for you. And if you have been eagerly awaiting the arrival of generics and iterators in Go to start using them, don't worry: this course is for you too!

You won't need a computer science degree or years of programming experience. "Explore Go: Generics" explains everything you need in simple and clear language, using straightforward examples, so you can understand what's new in the language, how the changes will affect you, and how to use generics in your programs and packages.


As in my previous courses, "For the Love of Go" and "The Power of Go: Tools", the material here is presented in an engaging and accessible way. However, the course is packed with powerful ideas, concepts, and techniques that you can apply in real-world applications.

What You Will Learn:

By completing this course and the assignments, you will learn:

  • The fundamental principles of generic programming in general and their application in Go.
  • What type parameters are and how they differ from interfaces.
  • How to declare and write generic functions, when it's necessary, and when it's not.
  • How generics are implemented in Go and how this affects program development.
  • How to set and use constraints on type parameters, including standard constraints of the Go library.
  • How to write constraints on type elements and approximate types, and how interfaces have changed.
  • What operations are allowed with generic types and how to choose appropriate constraints for them.
  • How to create and use generic containers, such as slices and maps, and add methods to them.
  • How to use the new official packages cmpslices, and maps, as well as how the standard library APIs are changing.
  • Where generics are truly useful and what new programs and packages you can create with them.
  • The limitations of generics in Go and situations where their use is unjustified.
  • What iterators are, how to create and use them, including new iterator APIs from the standard library.

Who This Course is For:

This course is perfect for anyone who wants to gain a deeper understanding of how generics and iterators are changing the Go language, the ecosystem of standard and third-party libraries, and the approach to writing programs.

SkillHunt logo
This material is included in the paid subscription. Subscribe to a premium subscription and watch all courses right now!