Methods, Value vs Pointer Receivers Explained | Learn Golang #16

13views
00
12:57
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Learn how to add methods to types in Go! Methods are functions attached to types, giving your data behavior. This tutorial covers method basics, value receivers, pointer receivers, and methods on custom types. 📚 What You'll Learn: • How to define methods with receivers • Value receivers vs pointer receivers • When to use each receiver type • Adding methods to custom types (not just structs) • Common mistakes with value receivers ⏱️ Timestamps: 0:00 - Introduction 0:27 - Method Basics 2:53 - Value vs Pointer Receivers 5:45 - Pointer Receivers in Practice 8:35 - Methods on Custom Types 11:31 - Recap 💻 Code Examples: https://github.com/GoCelesteAI/go_methods 🔗 Full Playlist: Learn Go Programming https://www.youtube.com/playlist?list=PLrDePfUQDVTEj-lT6qDBJ-E3KI9LhoEBD #golang #programming #tutorial #methods #golangtutorial

Tags

golanggo tutorialgolang methodsvalue receiverpointer receivergo programminglearn golanggolang tutorialstruct methodsgo oopgolang for beginnersgo functionsprogramming tutorialbackend developmentgolang basics
Back to tutorials

Duration

12:57

Published

February 2, 2026

Added to Codegiz

March 15, 2026

Open in YouTube