Compare strings



examples/compare-strings/compare_strings.go
package main

import (
    "fmt"
)

func main() {
    a := "cat"
    b := "dog"
    fmt.Println(a == b)
    fmt.Println(a < b)
    fmt.Println()

    smile := "😄"
    angry := "😠"

    fmt.Println(smile == angry)
    fmt.Println(smile < angry)
    fmt.Println(smile > angry)

}

false
true

false
true
false