Structs In Go
A struct in Go is a collection of data fields that are useful for creating records of grouped data types. It can be thought of as a class variable in object-oriented programming.
The fields of a struct can be accessed using dot notation, for example
...
josephfolayan.hashnode.dev6 min read