In-reply-to » 3 whole days in #Go I noticed my search history rolled back to: - "Convert an int to bool in Go" - "Swap two variables in Go" - "How to write a dictionary in Go"

@prologic@twtxt.net I wrote them by memory and got them wrong, here what I searched and why:

  • Using boolean as int to do math like false - true => -1` for selecting motion, managed differently
  • Swapping struct fields in a 2d array: solved by decoupling the items and it’s array with pointers
  • Found that quickly myself ✌️

Almost done with my first baby Go experiment, I’ll share soon™️`

⤋ Read More