We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Generics, Reflection, and Efficient Collections - Eleanor McHugh
Learn how to create flexible and efficient programs using Go's Generics, Reflection, and Collections, with practical examples and real-world applications.
- Generics can be used to create flexible and reusable functions
- 
The indexabletype can be used to create a range method for any type
- Reflection can be used to implement a generic map reduce function
- 
The reducibletype can be used to create a generic function that can be used with different types
- 
The sumfunction can be used to implement a generic summing function that can be used with different types
- 
The rangefunction can be used to create a generic range method for any type
- 
The reflectpackage can be used to implement a generic function that can be used with different types
- 
The panicfunction can be used to handle errors and exceptions in a program
- 
The runtimepackage can be used to implement a generic function that can be used with different types
- 
The switchstatement can be used to handle different types of values in a program
- 
The valfunction can be used to retrieve the value of a variable
- 
The setfunction can be used to set the value of a variable
- 
The getfunction can be used to retrieve the value of a variable
- 
The mapfunction can be used to create a map of values
- 
The slicefunction can be used to create a slice of values
- 
The appendfunction can be used to add new values to a slice
- 
The compressfunction can be used to compress a slice of values
- 
The expandfunction can be used to expand a slice of values
- 
The reducefunction can be used to reduce a slice of values
- 
The channelspackage can be used to create channels of values
- 
The selectstatement can be used to send and receive values over channels