CONTEXT IN GO
You've certainly seen the famous `ctx context.Context`, but if you haven't, trust me, you'll need it at some point in your code! In this video, we learn how context works in Go and how to use each of its methods!
Chapters:
00:00 Introduction
00:30 What is context?
02:50 Contexts in summary
03:30 The 3 types of contexts in Go
04:30 WithDeadline
06:00 WithTimeout
07:15 WithCancel
07:50 WithValue
09:40 WithCancel - Example
13:20 WithDeadline - Example
16:00 WithTimeout - Example
18:00 WithValue - Example
All the code is saved on the channel's GitHub, so if you want to replicate it on your PC, just access it there to get the code!
https://github.com/HunCoding
If you have any questions, feel free to leave them in the comments and we can discuss them and try to answer them!
Thanks!