Structs in Racket
Structs in Go are typed collections of fields. They’re useful for grouping data together to form records.
To run the program, save it to a file such as struct-example.rkt
and use Racket to run it.
Next example: Methods.
In this example, we’ve translated several fundamental operations involving structs from Go to Racket, adapting the syntax and idioms accordingly.