On Wed, Jan 10, 2018 at 2:29 PM pradam <pradam.programm...@gmail.com> wrote:

> I am a newbie to golang, I have been working on this snippet for a while
whenever i run this snippet I am getting above error message.
> I am actual searched on google but i didn't get any proper solution with
an explanation.help me with it.

'v := 100' declares 'v' with type 'int', but 'x' is 'int64'. Try 'v :=
int64(100)'.

More can be found in the language specification. Particularly, relational
operators work on equal types only and untyped constants have default types
when used in short variable declarations.




-- 

-j

-- 
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://groups.google.com/d/optout.

Reply via email to