Structs

Table of Contents

Basics of struct tutorial

type Developer struct {
    Name string
    Age  int
}

// By default, fields are initialized with zero values of their own types.
var devloper Developer
developer.Name = "Yeongho Kim"
developer.Age = 32
The dot notation works seamlessly with a pointer to a struct
struct literal
Comparing Structs
Struct embedding