On Mon, May 20, 2019 at 11:33 AM <djad...@gmail.com> wrote: > > Hi, > does this should work ?
The error is correct. See https://golang.org/ref/spec#Conversions """" A constant value x can be converted to type T if x is representable by a value of T. """" An integer cannot represent the value 6.6 hence the failure. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-W0qzAJf7tksRvrjeMe%3DYPMeWD%2Bx82ZS3%2BNaHTq%3D2Btuw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.