title: Iterate a 2D slice of integers diagonally in go
body: <p>What is an idiomatic way to iterate through a 2d slice of integers diagonally. Either the negative or positive diagonals?</p>
  <p><a href="https://i.stack.imgur.com/rz7gP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rz7gP.png" alt="enter image description here" /></a></p>
  <p>Here is a playground with a 2d grid setup.
  <a href="https://go.dev/play/p/Cpxg4a5HvrD" rel="nofollow noreferrer">https://go.dev/play/p/Cpxg4a5HvrD</a></p>