daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type Transform [3][3]float64  // A 3x3 array, really an array of arrays.
  2. type LinesOfText [][]byte     // A slice of byte slices.
  3.  
  4. //Slices within a 2D slice can have different lengths
  5.  
  6. text := LinesOfText{
  7.     []byte("Now is the time"),
  8.     []byte("for all good gophers"),
  9.     []byte("to bring some fun to the party."),
  10. }
  11.  
  12. //iterate through it with the construct
  13.  
  14. for i := range text {
  15.   fmt.Println(text[i])
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top