2 ms·
That's still not error handling. Error handling would look something like this: for err := callService(); err != nil { logger.Info("Retrying...")
by tsimionescu 7y ago
That's still not error handling.
Error handling would look something like this:
for err := callService(); err != nil {
logger.Info("Retrying...")
}
Or
value, err := readValueFromFile("abc.conf")
if err != nil {
value = getDefault()
}
etc.