Two syntax for switch and case in golang

preview_player
Показать описание
Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.

All the learning resources such as code files, documentations, articles and community discussions are available on our website:

You can find our discord link, github link etc on the above website.

Рекомендации по теме
Комментарии
Автор

Wow. This was better than going through the doc. Awesome explanation.

But this will not stop me to read the doc. 😀

harshrathod
Автор

Sir, could you please explain what is that rating after the assigned rating refers to ?before left brace

dineshpamidi
Автор

so adding fallthrough just means will execute the following cases too? why does it print 5 even though the value is 4

shleebeez
Автор

Does golang support nested switch?
and also can switch be applied with multiple varriable??

mood :="Happy"
food := "Pizza"

switch mood: {
case "Happy":
switch food: {
case "Pizza":
fmt.println("I like thin crust pizza ")
case "Burger":
fmt.println("I like chicken grilled burger")
}
case "Sad":
switch food: {
case "Pizza":
fmt.println("I like Cheeze burst pizza ")
case "Burger":
fmt.println("I like fried chicken burger")
}
}

VedPrakash-kwzd
Автор

Sir can you make arch Linux installation video I've messed with lots of things 😁

ashwanikumarsingh
Автор

Hey hitesh! Could you please make a video on this topic " Am i too old to learn coding". Because so many people has same dobut and they are so confused regarding it.

kaushalsingh
join shbcf.ru