Golang Tutorial For Beginners | Switch Statement

Опубликовано: 28 Март 2026
на канале: Felix The Dev
101
5

Golang

Are you learning the go programming language (golang)? Are you a beginner?

Then, this video is for you!

On this video, I explain what switch statements are, and how to use them in the Go programming language. I also talk using the switch keyword vs an if else statment in golang.

This video is for beginners learning golang.

Here's the outline of this video (TIMESTAMPS):

What is the switch keyword? (0:49)
Switch syntax in golang (1:58)
Example (6:30)
Comparing solution using if vs switch statements (11:10)
Question of the day (13:35)

Notes: Press Ctrl + R to run program.

I hope this helps!

🔔Subscribe to Felix The Dev for weekly videos that may help you if you are learning to code - http://bit.ly/2FN496j

► MENTIONED ON THIS VIDEO AND OTHER RESOURCES:

Go Playground - https://play.golang.org/
Golang Official Documentation - https://golang.org/

► OPPORTUNITY OF THE WEEK:
Montem Health and Wellness Scholarship -
https://montemlife.com/scholarship/

► WAYS YOU CAN SUPPORT THE CHANNEL:

Want to donate? I appreciate it. Here's how:
http://bit.ly/2Z1sYpH

You can buy me a coffee (my ko-fi page!)
https://ko-fi.com/felixthedev

Interested in investing in bitcoin, ethereum or litecoin? Try Coinbase. Use the link below and we will both get 10$ in bitcoin:
https://www.coinbase.com/join/cabrer_id

►📚 BOOK RECOMMENDATIONS(AFFILIATE LINKS)📚:

The Go Programming Language (Addison-Wesley Professional Computing Series) - https://amzn.to/2LwihE1

The Way to Go: A Thorough Introduction to the Go Programming Language - https://amzn.to/2QbpX37

►TOOLS I USE (AFFILIATE LINKS):
Web hosting I currently use - Bluehost
https://www.bluehost.com/track/felixt...

► WORK WITH ME:
https://yadielcabrera.com/work-with-me/

SHARE this video with a friend. It might help them!

► Join the "Computer Science College Students" LinkedIn Group:
  / 12124470  

► Follow me on Medium for more content to help you in your Computer Science journey as an undergraduate student in college -   / felixthedev  

► CONNECT WITH ME:
http://yadielcabrera.com
  / @felixthedev  
  / yadielcabrera  
http://github.com/yadielc
https://www.quora.com/profile/Yadiel-...

#go #golang #goforbeginners

Felix is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com

Disclaimer: Results may vary. These tips and advice are based on my experience and opinion as a former undergraduate Computer Science student, tutor, teacher, and professional software developer. Everyone is different, so, the advice shared in this article may or not work for you. :)