Compound data type: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→{{header|6502 Assembly}}: fixed typo and general formatting) |
(→{{header|Go}}: simplify) |
||
Line 852: | Line 852: | ||
=={{header|Go}}== |
=={{header|Go}}== |
||
<lang go> |
<lang go>type point struct { |
||
import "fmt" |
|||
type point struct { |
|||
x, y float64 |
x, y float64 |
||
} |
} |
||
⚫ | |||
func main() { |
|||
fmt.Println(point{3, 4}) |
|||
⚫ | |||
=={{header|Groovy}}== |
=={{header|Groovy}}== |