Structs In Go – Learn Golang #9
In this video we’ll learn about structs, or structures, in golang.
Structs are kind of like Classes, but not; and kind of like arrays, but not.
They’re used to group things together that have different Datatypes.
#golang #codemy #JohnElder
Timecodes
0:00 – Introduction
0:44 – What Is A Struct
1:49 – Create A Person Struct
2:47 – Add Data To A Struct
3:52 – Print The Whole Struct
4:25 – Print An Item From A Struct
4:53 – Change An Item In A Struct
5:16 – Shorthand To Add Data To A Struct
6:50 – Conclusion
Comments are closed.