Compound data type: Difference between revisions

Content added Content deleted
m (→‎{{header|6502 Assembly}}: fixed typo and general formatting)
(→‎{{header|Go}}: simplify)
Line 852: Line 852:


=={{header|Go}}==
=={{header|Go}}==
<lang go>package main
<lang go>type point struct {

import "fmt"

type point struct {
x, y float64
x, y float64
}
}
</lang>

func main() {
fmt.Println(point{3, 4})
}</lang>


=={{header|Groovy}}==
=={{header|Groovy}}==