Defining Structs

Adam Freeman · Apress eBooks · 2022

In this chapter, I describe structs, which is how custom data types are defined in Go. I show you how to define new struct types, describe how to create values from those types, and explain what happens when values are copied. Table 10-1 puts structs in context.

Read the paper · More papers on PaperTik