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)

}

examples/compare-strings/compare_strings.out
false
true

false
true
false