A struct is a collection of fields.
we are creating xy struct with X and Y fiels.
type xy struct {
	X string
	Y string
}
package main
import "fmt"
type xy struct {
	X string
	Y string
}
func main() {
	fmt.Println(xy{"x", "y"})
}
Part of Golang Mastery course
A struct is a collection of fields.
we are creating xy struct with X and Y fiels.
type xy struct {
	X string
	Y string
}
package main
import "fmt"
type xy struct {
	X string
	Y string
}
func main() {
	fmt.Println(xy{"x", "y"})
}