Rajesh Kumar·Mar 19, 2025Understanding Go Embeddings: A Deep Dive into Struct CompositionHey there, fellow Gophers! Today, we’re going to explore one of Go’s most powerful yet sometimes overlooked features: struct embedding. If…
Rajesh Kumar·Mar 10, 2025Understanding Constructor Functions in GoWhile working with go, one of the concepts I struggled with was constructors. Coming from languages like Python, I found Go’s approach…
Rajesh Kumar·Mar 7, 2025Go Functions vs. Methods:Have you ever wondered about the difference between functions and methods in Go? I certainly did when I first encountered them. At a…
Gopal Agrawal·Dec 14, 2024Iterating through Struct Fields in GoHow do I loop through the fields of this thing without breaking my head? Relax ! Here is how it do this.
Sheikh Wasiu Al Hasib·Oct 29, 2024Structs, Pointers, Receivers, and Constructors in Go: Building Robust and Efficient CodeGo’s approach to types, memory management, and methods offers a powerful way to structure code, especially when working with **structs**…
Sher Chowdhury·Dec 21, 2020Go Structs (Part 2) — Zero Value StructsA zero value struct is simply a struct variable where each key’s value is set to their respective zero value.
Sher Chowdhury·Dec 21, 2020Go Structs (Part 1) — Anonymous StructsAnonymous Structs let’s you create struct variables without defining a struct type.