Tag: Golang

  • TIL: named return parameters in Go




    Yet another piece of โœจ Go Magic โœจ I was reading through some Go code when I came upon a function that returned two things – []string and error – but the last line of the function just said return. I was confused how this worked, and since it was part of the standard library…