15 lines
171 B
Go
15 lines
171 B
Go
package norm
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func Norm(s string) string {
|
|
return strings.ToLower(s)
|
|
}
|
|
|
|
func Eq(a, b string) bool {
|
|
an, bn := Norm(a), Norm(b)
|
|
return an == bn
|
|
}
|