Searching for: Optionals in Go
A function (method) is a block of code that can be called from another location in the program or class. It is used to reduce the repetition of multiple lines of code.
Slices are used to store multiple sequenced values in one variable, similar to arrays. Unlike arrays, slices can be dynamically sized.
Closures are functions which enclose other functions, often with a function return type. The inner functions are able to reference the variables around the closure function.
A switch case is used test variable equality for a list of values, where each value is a case. When the variable is equal to one of the cases, the statements following the case are executed.