Go
go.dev โบ tour โบ moretypes โบ 2
Structs
A Tour of Go
Go by Example
gobyexample.com โบ structs
Go by Example: Structs
Goโs structs are typed collections of fields. Theyโre useful for grouping data together to form records ยท This person struct type has name and age fields
Videos
13:41
Golang Tutorial #21 - Struct Methods - YouTube
07:34
Structs In Go - Learn Golang #9 - YouTube
15:57
This is your last video about Golang Structs! - YouTube
24:37
Creating custom struct tags in Golang is awesome! - YouTube
07:21
Go Structs - YouTube
13:14
Golang Deep Dive: Structs - YouTube
W3Schools
w3schools.com โบ go โบ go_struct.php
Go Struct
A struct (short for structure) is used to create a collection of members of different data types, into a single variable.
Go
go.dev โบ wiki โบ Well-known-struct-tags
Go Wiki: Well-known struct tags - The Go Programming Language
Go offers struct tags which are discoverable via reflection.
Mastergolang
mastergolang.github.io โบ structs
Master Golang: Structs
Best practices for using Structs in golang, start from introducing the basic use
CodeSignal
codesignal.com โบ learn โบ courses โบ clean-coding-with-go-structures โบ lessons โบ struct-initialization-in-go-best-practices-for-clean-code
Struct Initialization in Go: Best Practices for Clean Code
In Go, constructor functions (commonly prefixed with New) are essential for initializing structs in a known state, enhancing code maintainability and readability. They encapsulate the logic of object creation, ensuring every struct starts correctly. A well-designed constructor function can ...
ZetCode
zetcode.com โบ golang โบ struct
Working with Structs in Go
A struct is a user-defined type that contains a collection of fields. It is used to group related data to form a single unit. A Go struct can be compared to a lightweight class without the inheritance feature.
Medium
medium.com โบ @felipedutratine โบ how-to-organize-the-go-struct-in-order-to-save-memory-c78afcf59ec2
How to organize the go struct, in order to save memory. | by Felipe Dutra Tine e Silva | Medium
February 13, 2017 - In this article I want to explain you how the memory works internally in a 64 bit architecture, when you instantiate a struct. (You can play with the code https://play.golang.org/p/cUgB54yCpL ) When you have a struct like this one : type myStruct struct { myBool bool // 1 byte myFloat float64 // 8 bytes myInt int32 // 4 bytes } As you see a boolean takes 1 byte, a float64 8 bytes, and an int32 4 bytes.
GeeksforGeeks
geeksforgeeks.org โบ go language โบ structures-in-golang
Structures in Golang - GeeksforGeeks
July 12, 2025 - A structure or struct in Golang is a user-defined type that allows to group/combine items of possibly different types into a single type. Any real-world entity which has some set of properties/fields can be represented as a struct.