10 secrets in Go (Golang) (5m Friday #4)

Опубликовано: 08 Май 2026
на канале: Steve Hook
21,556
512

A short tutorial on 10 simple gotchas/tips & tricks in Go which I personally think are amazing and are a good to know for anyone who's writing Go.

Here is a small list of the topics we'll cover:

00:00 - Video Intro
00:36 - Secret 1 - nil slice vs empty slice
01:21 - Secret 2 - slice three-index
02:23 - Secret 3 - type aliases
03:37 - Secret 4 - json struct tags
04:14 - Secret 5 - anonymous & empty structs
05:00 - Secret 6 - go routines run order
05:37 - Secret 7 - concurrent safe types
06:32 - Secret 8 - shadow everything
07:03 - Secret 9 - nil interface{}
07:41 - Secret 10 - value vs pointer receiver
08:36 - Video Outro

Enjoy 🚀💻🚀


✍RESOURCES:

Articles:
► http://devs.cloudimmunity.com/gotchas...
► https://www.ardanlabs.com/blog/2013/1...
► https://github.com/golang/go/wiki/Sli...

Code:
► https://repl.it/@steevehook/nil-vs-em...
► https://repl.it/@steevehook/slice-3-i...
► https://repl.it/@steevehook/type-aliases
► https://repl.it/@steevehook/json-stru...
► https://repl.it/@steevehook/anonymous...
► https://repl.it/@steevehook/empty-str...
► https://repl.it/@steevehook/go-routin...
► https://repl.it/@steevehook/concurren...
► https://repl.it/@steevehook/shadow-ev...
► https://repl.it/@steevehook/nil-inter...
► https://repl.it/@steevehook/value-vs-...

🐧 FEEDBACK:
► https://gophertuts.typeform.com/to/j2...

💬 COMMUNITY:
►   / discord  

💻GITHUB:
► https://github.com/gophertuts
► https://github.com/steevehook

💻Repl.it:
► https://repl.it/@steevehook

💻Exercism:
► https://exercism.io/profiles/steevehook

📖Medium:
►   / steevehook  

💬TWITTER:
►   / @steevehook  

💬FACEBOOK:
►   / steevehookmd  

💬REDIT:
►   / steevehook  

💬INSTAGRAM:
►   / steevehook  

✉️EMAIL
[email protected]

⚡WEBSITE:
► https://www.steevehook.com

🎧 Music:
► https://www.epidemicsound.com/referra...
► https://artlist.io/

🎥 Gear used:
► Sony 𝛼7III
► Rode NTG-3
► Golden Age Project Pre73-JR preamp

______________________________________________________________________________

Software engineering is one of the most accessible fields nowadays, but it's easy to get lost in the huge amount of technologies and ways to approach engineering problems. Lots of languages, frameworks, solutions and ways to be a productive engineer.

I share my own experience on what is like to be a software engineer and the skills required to be a productive one. On this channel I share my thoughts, opinions and video tutorials about topics related to a certain technology, to make it easier for you to ultimately make a choice or just get better at software engineering by learning from my mistakes/experience.

Make sure to also check out 5m Friday every Friday, where I share my thoughts and opinions about different engineering topics. I'll c you around 😎

Stay tuned!
🚀💻🚀