Go for DevOps
You're viewing a free preview. Sign in free to read every script.
Why this exists Go has fewer control structures than most languages: one loop (for), one conditional style, and functions that return several values. The multiple return idiom, a result plus an error, is the backbone of…
Go Basics: Control Flow, Functions and Multiple Return Values
if with an initialiser, the single for loop and range, switch without fallthrough, functions that return several values including an error, variadic functions and closures.
Sign in free to read this script, along with the rest of the library.
Sign in free