4 ms·
The idiom is to return two values: the desired return value, and also an error value. Go has support for multiple return values, and easy syntax for assigning t
by pcl 6y ago
The idiom is to return two values: the desired return value, and also an error value. Go has support for multiple return values, and easy syntax for assigning those positional return values to variables at the call site.