Jump to content

Compound data type: Difference between revisions

m (→‎{{header|6502 Assembly}}: fixed typo and general formatting)
(→‎{{header|Go}}: simplify)
Line 852:
 
=={{header|Go}}==
<lang go>packagetype mainpoint struct {
 
import "fmt"
 
type point struct {
x, y float64
}
}</lang>
 
func main() {
fmt.Println(point{3, 4})
}</lang>
 
=={{header|Groovy}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.