Generics in Go
Offered By: Gopher Academy via YouTube
Course Description
Overview
Explore the concept of generics in Go through this 24-minute conference talk from GopherCon 2019. Dive into the advantages and requirements of implementing generics in the Go programming language. Learn how to reverse a slice of strings and discover sample functions and data structures that can be written generically. Gain insights into guidelines for designing with generics and understand how to reverse a slice of any type. Examine various contracts including Sequence, Stringer, and Ordered. Delve into generic binary tree data structures, learning how to create, search, and use them effectively. Conclude with a look at type checking implementation to experiment with these concepts.
Syllabus
Intro
Reverse a slice of string
Sample functions that can be written generically
Sample data structures that can be written generically
Guidelines for a generics design
Reverse a slice of any type
The Sequence contract
The Stringer contract
The Ordered contract
Generic binary tree data structures
Create a generic binary tree
Search a generic binary tree
Using a generic binary tree
Type checking implementation to try out
Taught by
Gopher Academy
Related Courses
A Holistic Go ExperienceGopher Academy via YouTube Safe, Fast, and Easy - Building a Plugin System with WebAssembly
Gopher Academy via YouTube A Journey Through Integration Testing with Go - What Could Go Wrong?
Gopher Academy via YouTube Kraken Wrangling for Dummies - Go Module Dependency Management at Scale
Gopher Academy via YouTube Go, the Data Engineer's Missing Tool?
Gopher Academy via YouTube