Hi Gophers,
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.

package main


import (
      "fmt"
)


func pow(x int64) string {
if v := 100; v < x {
return "less than 100"
}
return "not less than 100"
}

func main(){

  fmt.Println(pow(10))
}

./if-else.go:16:17: error: incompatible types in binary expression
  if v := 100; v < x {

thank you,

-- 
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