Searching for: Blocks 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.
Commenting is used to write text within the code that is ignored by the compiler.
The for loop is a control structure that executes a block of code a specified number of times.
The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false. There are three parts to the if-else block: if, else if, and else.
Next Page >