Interfaces Tutorial - Polymorphism & Type Assertions | Learn Golang #17

16views
00
13:50
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Master interfaces in Go! Interfaces define behavior contracts that enable polymorphism and flexible code design. This tutorial covers interface basics, implicit implementation, type assertions, and the Stringer interface. 📚 What You'll Learn: • How to define and implement interfaces • Implicit implementation (no "implements" keyword) • Polymorphism with interface parameters • Empty interface and type assertions • Type switches for multiple type checks • Stringer interface for custom formatting ⏱️ Timestamps: 0:00 - Introduction 0:27 - Interface Basics 2:48 - Interface Polymorphism 6:19 - Empty Interface & Type Assertions 9:07 - Stringer Interface 12:24 - Recap 💻 Code Examples: https://github.com/GoCelesteAI/go_interfaces 🔗 Full Playlist: Learn Go Programming https://www.youtube.com/playlist?list=PLrDePfUQDVTEj-lT6qDBJ-E3KI9LhoEBD #golang #programming #tutorial #interfaces #golangtutorial #polymorphism

Tags

golanggo programminggo tutorialgolang tutoriallearn golanggo interfacesgolang interfacespolymorphismtype assertionsgo type switchempty interfacestringer interfaceimplicit implementationgo programming tutorialgolang for beginners
Back to tutorials

Duration

13:50

Published

February 2, 2026

Added to Codegiz

March 15, 2026

Open in YouTube