[go-nuts] Re: printing a struct fields that implements an error interface

2018-02-18 Thread jake6502
There may be another way, but this is one way to print the struct fields: https://play.golang.org/p/sGZMBGG7r79 See line 17. On Sunday, February 18, 2018 at 8:57:02 AM UTC-5, Diego Medina wrote: > > using %#v > > as in > > https://play.golang.org/p/VVqUVsfzx6e > > > > log.Printf("Hello,

[go-nuts] Re: printing a struct fields that implements an error interface

2018-02-18 Thread Diego Medina
using %#v as in https://play.golang.org/p/VVqUVsfzx6e log.Printf("Hello, playground %#v\n", ret) On Saturday, February 17, 2018 at 7:05:42 PM UTC-5, Joseph Lorenzini wrote: > > Hi all: > > Per documentation: > > "If an operand implements the error interface, the Error method will be >