go get github.com/kangkang66/xcompare
- String
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.IN.String("a",[]string{"a","b"})
fmt.Println(boolValue)
//true
- String
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.Equal.String("a","a")
fmt.Println(boolValue)
//true
- String
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.NotEqual.String("a","b")
fmt.Println(boolValue)
//true
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.Litter.Int64(1,2)
fmt.Println(boolValue)
//true
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.LitterEqual.Int64(1,2)
fmt.Println(boolValue)
//true
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.Great.Int64(2,1)
fmt.Println(boolValue)
//true
- Int32
- Int64
- Float32
- Float64
boolValue := xcompare.GreatEqual.Int64(2,1)
fmt.Println(boolValue)
//true