Хабр Курсы для всех
РЕКЛАМА
Большая витрина: от крупнейших школ до частных авторов. Сравнивайте по цене, длительности, формату и выбирайте самый подходящий курс!
fmt.Println(err)если бы вы использовали:
This is the second most common gotcha in Go because interfaces are not pointers even though they may look like pointers. Interface variables will be «nil» only when their type and value fields are «nil».
Nil не всегда nil