What's the best / standard way to iterate results from a function call where it returns the tuple (result, err)
.
Example :
func getSlice() ([]string, error) {
return []string{"a", "b", "c"}, nil
}
for _, letter := range getSlice() {} //how should it be done here?
Is that even a good thing to consider?