VOOZH about

URL: https://www.geeksforgeeks.org/go-language/strings-equalfold-function-in-golang-with-examples/

⇱ strings.EqualFold() Function in Golang With Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

strings.EqualFold() Function in Golang With Examples

Last Updated : 28 Apr, 2025

strings.EqualFold() Function in Golang reports whether s and t, interpreted as UTF-8 strings, are equal under Unicode case-folding, which is a more general form of case-insensitivity. 

Syntax:

func EqualFold(s1, s2 string) bool

Here, s1 and s2 are strings. 

Return Value: It returns the boolean value. 

Example 1: 

Output:

true
true

Example 2: 

Output:

true
true
Comment
Article Tags:

Explore