3 ms·
You don't, at least not usually. func foo()(value,err) can return any combination of valid or invalid value and error, so (nil, nil) would be possible, or ("va
by corty 6y ago
You don't, at least not usually.
func foo()(value,err) can return any combination of valid or invalid value and error, so (nil, nil) would be possible, or ("valid value", someerror). It is just by convention that you shouldn't do that.