The first (return early).
And use gofmt
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://
Use gofmt.
On Jul 30, 2017 13:21, wrote:
> What is the standard way to construct|format the following code snippet?
> I think the first is more readable; however, is there any accepted syntax I
> should be using working my way up the ladder as a senior developer?
>
> block, err := aes.NewCipher(
What is the standard way to construct|format the following code snippet? I
think the first is more readable; however, is there any accepted syntax I
should be using working my way up the ladder as a senior developer?
block, err := aes.NewCipher(key)
if err != nil {
return err, nil, nil
}
nonc