WTF is a type switch in

  Рет қаралды 824

Brian Morrison

Brian Morrison

Күн бұрын

Пікірлер: 4
@Huboh
@Huboh 8 ай бұрын
Nice content dude! As a general rule, to make your code more flexible and to explicitly declare what functionality is being used, your functions should accept interfaces and return structs. Exception to this is returning the error interface
@PeterBenjamin-KH
@PeterBenjamin-KH Жыл бұрын
These are the times when I feel like I want proper enums in Go. There is Go proposal for proper enums in Go, but there is no consensus from the team or the community. For now, there is "enumer" utility (designed following Rob Pike's "stringer" utility) that scaffolds/generates the boilerplate that you just typed in this video. 🙂
@brianmmdev
@brianmmdev Жыл бұрын
I agree. Ive resorted to using specially named constants but it’s not the same.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 90 М.
Advanced Golang: Generics Explained
13:37
Code With Ryan
Рет қаралды 71 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Learn Go in 12 Minutes
13:34
Jake Wright
Рет қаралды 953 М.
32 Reasons WHY TS IS BETTER Than Go
1:09:29
ThePrimeTime
Рет қаралды 264 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 28 М.
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 67 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 437 М.
Изучаем Go. Урок №8. Switch .. case #golang
10:42
This is the Only Right Way to Write React clean-code - SOLID
18:23
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 137 М.