ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Learning Golang: Interface Types - Part 2 (empty interface, type assertion and type switches)

Автор: Mario Carrion

Загружено: 2021-07-16

Просмотров: 4090

Описание: Welcome! Let's learn about Go Types, specifically Interface Types, a little bit of Functions and Methods; and why all of those types are somehow interconnected.

What is an Interface in Go?

An interface type is defined as a set of method signatures, a value of interface type can hold any value that implements those methods.

How to implement Interfaces in Go?

Compared to other programming languages, a type implements an interface IMPLICITLY by implementing the methods; there's no need to refer to the original interface, there's no concept of "extends" or "implements". This means the actual concrete implementation of a type could appear in any other package without prearrangement.

In this episode I cover more about interfaces and types in Go like:

Empty interface "interface{}",
nil interfaces,
Type assertions, and
Type switches

---

RELEVANT LINKS

Previous episode:    • Learning Golang: Interface Types - Part 1  

Example code: https://github.com/MarioCarrion/video...
"Why is my nil error value not equal to nil?" https://golang.org/doc/faq#nil_error

Playlist "Software Architecture in Go":    • Software Architecture and System Design in...  
Playlist "Learning Go":    • Learning Go/Golang  
Playlist "Building Microservices in Go":    • Building Microservices in Golang/Go  
Playlist "GoTools and Packages":    • Golang/Go Tools and Packages  
Playlist "Testing in Go":    • Testing in Golang/Go  

00:00 Intro
00:29 What is in an interface value in Golang?
04:27 Calling interface values with nil in Golang?
07:13 What is the empty interface{} in Golang?
08:35 Type Assertions and Type Switches in Golang
14:17 Conclusion - Interface Types in Golang

---

Who am I:

Hello👋🏼! I'm Mario, a Hands-on Software Architect and Lead Backend Engineer with more than 16 years of professional experience building all kinds of software including on-premise Industrial Automation Systems, Linux Accessibility Desktop and Browser Components as well as Distributed Advertising Microservices.

Every week I will share with you different topics I've learned while working for small startups and large companies including the processes I've followed over the years for successfully delivering complex enterprise systems from start to end.

Subscribe if you like Software Development, Software Architecture and Systems Design!

Keep it up. Don't give up!

#golang #microservices #programming

--- Our affiliate links below

Shop our Amazon favorites → https://www.amazon.com/shop/rubycarrion
Shop my IG feed on my LIKEtoKNOWit (LTK) page → https://www.liketoknow.it/RubyCarrion
Shop Top Deals and Featured Offers at Best Buy → https://bestbuy.7tiv.net/c/2558226/68...
Get a 30 day FREE Trial of Epidemic Sound → https://www.epidemicsound.com/referra...
Try Amazon Prime 30-day FREE Trial → https://amzn.to/3yf9a0f
I love getting Cash Back and think you will too! Join for FREE and get $30 when you spend $30. https://www.rakuten.com/r/RUBYRA132?e...

--- Our Vlog Channel

   / rubycarrion  

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Learning Golang: Interface Types - Part 2 (empty interface, type assertion and type switches)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Learning Golang: Dependencies, Modules and How to manage Packages

Learning Golang: Dependencies, Modules and How to manage Packages

Утверждения типов в Go: единственное руководство, которое вам нужно!

Утверждения типов в Go: единственное руководство, которое вам нужно!

Practical Explanation of Golang INTERFACES

Practical Explanation of Golang INTERFACES

Learning Golang: Concurrency Patterns Fan-In and Fan-Out

Learning Golang: Concurrency Patterns Fan-In and Fan-Out

Изучение Golang: введение в бенчмарки

Изучение Golang: введение в бенчмарки

DID YOU JUST ASSERT MY TYPE?! - Golang Type Assertion Tutorial

DID YOU JUST ASSERT MY TYPE?! - Golang Type Assertion Tutorial

Зачем нужны интерфейсы в #Go? / туториал по интерфейсам в #Golang

Зачем нужны интерфейсы в #Go? / туториал по интерфейсам в #Golang

Learning Golang: Concurrency Patterns using errgroup package

Learning Golang: Concurrency Patterns using errgroup package

Шаблон Must в Golang объяснен наглядно!

Шаблон Must в Golang объяснен наглядно!

Сокращения в IT. Пузырь лопнул

Сокращения в IT. Пузырь лопнул

Master Golang with Interfaces

Master Golang with Interfaces

Golang 1.21: What is new?

Golang 1.21: What is new?

Обработка ошибок в Golang на самом деле не так уж и плоха

Обработка ошибок в Golang на самом деле не так уж и плоха

Learning Golang: Introduction to Concurrency Patterns, goroutines and channels

Learning Golang: Introduction to Concurrency Patterns, goroutines and channels

Понимание ИНТЕРФЕЙСОВ в GOLANG

Понимание ИНТЕРФЕЙСОВ в GOLANG

Интерфейсы в Go (Golang)

Интерфейсы в Go (Golang)

This Will Make Everyone Understand Golang Interfaces

This Will Make Everyone Understand Golang Interfaces

Golang 1.25: What is new?

Golang 1.25: What is new?

Golang: последнее объяснение интерфейса, которое вам когда-либо понадобится

Golang: последнее объяснение интерфейса, которое вам когда-либо понадобится

Go's Empty Interfaces, Type Assertions, and Type Switch: Explained with Code Examples

Go's Empty Interfaces, Type Assertions, and Type Switch: Explained with Code Examples

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]