структуры, интерфейсы, композиция вместо классовstructs, interfaces, composition instead of classes
В Go осознанно нет классов, наследования и конструкторов как отдельного синтаксиса. Этот раздел раскладывает 14 базовых концепций ООП плюс полиморфизм (только через интерфейсы) на то, что Go реально предлагает (структуры, интерфейсы, embedding) — 5 базовых концепций (деструкторы, свойства, индексаторы, наследование, события) в список не попали, потому что у Go для них нет даже идиоматичной замены на уровне языка. Каркас: 14 карточек, страницы ещё не написаны.Go deliberately has no classes, no inheritance, and no constructors as dedicated syntax. This section maps the 14 baseline OOP concepts plus polymorphism (interfaces only) onto what Go actually offers (structs, interfaces, embedding) — 5 baseline concepts (destructors, properties, indexers, inheritance, events) are missing from the list because Go has no idiomatic substitute at the language level for any of them. Skeleton: 14 cards, pages not yet written.
статусstatus
Это каркас: 2 подраздела и 14 карточек зафиксированы, страницы ещё не написаны. Из 5 языков этой сравнительной серии у Go меньше всего карточек — 5 базовых концепций (деструкторы, свойства, индексаторы, наследование, события) в список не попали: философия языка сознательно отвергает классическое ООП-наследование в пользу композиции через embedding и структурной типизации через интерфейсы. Полиморфизм в Go есть, но только через интерфейсы, без наследования. Метка interview отмечает самые частые вопросы на собеседованиях: value vs pointer receivers, отсутствие перегрузки, embedding вместо наследования, полиморфизм через интерфейсы, ловушка с копированием sync.Mutex, методы на именованных типах.This is a skeleton: 2 subsections and 14 cards are locked in, pages not yet written. Of the 5 languages in this comparison series, Go has the fewest cards — 5 baseline concepts (destructors, properties, indexers, inheritance, events) are missing from the list: the language's design philosophy deliberately rejects classical OOP inheritance in favor of composition via embedding and structural typing via interfaces. Go does have polymorphism, but only via interfaces, with no inheritance involved. The interview tag marks the most common interview questions: value vs pointer receivers, the lack of overloading, embedding vs inheritance, interface-based polymorphism, the sync.Mutex copy trap, methods on named types.