A struct
is a collection of fields.
(And a type
declaration does what you'd expect.)
package main import "fmt" type Vertext struct {
X int
Y int
} func main() {
fmt.Println(Vertext{,})
}
2023-12-30 23:01:46
A struct
is a collection of fields.
(And a type
declaration does what you'd expect.)
package main import "fmt" type Vertext struct {
X int
Y int
} func main() {
fmt.Println(Vertext{,})
}