Skip to content

Tutorial code for my video Generics Part 3: How to use Generics in Golang

License

Notifications You must be signed in to change notification settings

isensee-bastian/set-generics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generics Part 3: Set Implementation with Generics

  • Why use generics
    • Allows code reuse
    • Allows restrictions on types that the compiler can verify
  • Using generics
    • Defining generic types and functions
    • Using generic types and functions
    • Disadvantage: Complexity increases (readability)