[go-nuts] Proper way to construct|format this code...

2017-07-30 Thread Tamás Gulácsi
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://

Re: [go-nuts] Proper way to construct|format this code...

2017-07-30 Thread Christopher Nielsen
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(

[go-nuts] Proper way to construct|format this code...

2017-07-30 Thread edb9818
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