Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Transform [3][3]float64 // A 3x3 array, really an array of arrays.
- type LinesOfText [][]byte // A slice of byte slices.
- //Slices within a 2D slice can have different lengths
- text := LinesOfText{
- []byte("Now is the time"),
- []byte("for all good gophers"),
- []byte("to bring some fun to the party."),
- }
- //iterate through it with the construct
- for i := range text {
- fmt.Println(text[i])
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement