📝 Edit page
➕ Add page
Structures
Understanding the
struct
type
Syntax
struct {
KEY_NAME VALUE_TYPE
[...]
}[ optional instances ]
Examples
person := struct {
Name string
Age int
}{"Kim", 22}
point := struct {
x, y int
}