Learn Go with Me – Week 1 part 2

Today I continue my Week 1 journey of learning Go. In this episode I get into some core language features that feel very different from JavaScript and TypeScript. I cover formatting with fmt.Printf, using fmt.Sprintf, working with multiline strings using backticks, short argument notation in functions, multiple return values, named return values, Go’s approach to if statements, why Go only has one loop, how switch works without breaks, and why error handling is stricter and clearer compared to JS.

What I covered in this video
• How to format floats with fmt.Printf using %f, %.1f, %.2f
• How fmt.Sprintf works for building formatted strings
• How multiline strings work with backticks instead of quotes
• Short argument notation when all params share the same type
• Multiple return values in Go functions
• Named return values and how Go infers your return statement
• if statements without parenthesis
• Why Go only has the for loop
• switch cases in Go without needing break
• How Go forces proper error handling compared to JS

If you’re learning Go from a JavaScript background, this video will give you a clear, real-world look at what feels different and why Go’s stricter patterns can make your code cleaner.

My links
Twitter: https://twitter.com/alexcloudstar
My projects: https://alexcloudstar.com

#golang #go #programming #learnwithme #javascriptdev #backend #codingjourney #golangtutorial #softwareengineering #100daysofcode #devlog