3 ms·
I can't tell you why this pattern of error handling was chosen but this is different from the callback pattern in nodejs. In Go, errors are typically returned d
by ElKrist 10y ago
I can't tell you why this pattern of error handling was chosen but this is different from the callback pattern in nodejs. In Go, errors are typically returned directly by the called function. Even if such function makes "asynchronous" calls (there is a great article shared on HN that explained why this term is not the best)