have a method that looks this:
var YandexCard api.YandexCard
return YandexCard, json.Unmarshal(AnyContainer.Container, &YandexCard)
resulting code always returns empty structure, meaning it somehow caches first return value and then unmarshals into var YandexCard, which is not actually returned
does anyone have insight on that?
There is no cache, the evaluation of the return is ordinal, this means that you first should unmarshal and just after that you can return the YandexCard value
Обсуждают сегодня