mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-23 21:34:47 +02:00
14 lines
283 B
Go
14 lines
283 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
func main() {
|
|
str := "Hello mad world!"
|
|
fmt.Println(strings.EqualFold(str, "hello mad world!")) // true
|
|
fmt.Println(strings.EqualFold(str, "HELLO mad world!")) // true
|
|
fmt.Println(strings.EqualFold(str, "Oo")) // false
|
|
}
|