Skip to content

Instantly share code, notes, and snippets.

@nwillc
Created July 15, 2022 19:45
Show Gist options
  • Save nwillc/577f8dacdeec4de7e07b8bb82e7283ec to your computer and use it in GitHub Desktop.
Save nwillc/577f8dacdeec4de7e07b8bb82e7283ec to your computer and use it in GitHub Desktop.
Go multi assignment
aa, bb, cc = bb, cc, aa
fmt.Println(aa, bb, cc)
// output: 3 1 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment