I don’t even know how to google (I found something like this only in if, it still didn’t work to enter). Explain, please, what err means in these places and how the value assigned to err appears in the variables in front of err:
1. src, err := os.Open(srcName, os.O_RDONLY, 0)
2. if r, err := f1(i); err != nil if r, err := f1(i); err != nil
A similar construction was observed with ok instead of err.
In the documentation found this:
if v := math.Pow(x, n); v < lim { return v } However, everything is clear, unlike the examples above.