Урок 1 из 6

The idiomatic way to detect a failure is to write if err nil { ... } right after the call.