github.com/mshitrit/go-mutesting@v0.0.0-20210528084812-ff81dcaedfea/testdata/expression/comparison.go (about) 1 // +build example-main 2 3 package main 4 5 import "fmt" 6 7 func main() { 8 if 1 > 2 { 9 fmt.Printf("1 is greater than 2!") 10 } 11 12 if 1 < 2 { 13 fmt.Printf("1 is less than 2!") 14 } 15 16 if 1 <= 2 { 17 fmt.Printf("1 is less than or equal to 2!") 18 } 19 20 if 1 >= 2 { 21 fmt.Printf("1 is greater than or equal to 2!") 22 } 23 24 if 1 == 2 { 25 fmt.Print("1 is equal to 2!") 26 } 27 }