Golang strings.ContainsRune() function example
package strings
Golang strings.ContainsRune() function usage example
package main
import (
"fmt"
"strings"
)
func main() {
ok := strings.ContainsRune("Hello World!", 'e')
fmt.Println("Hello World contains the rune e :", ok)
ok = strings.ContainsRune("Hello World!", '제')
fmt.Println("Hello World contains the rune 제 :", ok)
}
Reference :
Advertisement
Something interesting
Tutorials
+17.7k Golang : [json: cannot unmarshal object into Go value of type]
+6.5k Golang : Spell checking with ispell example
+10k Golang : Channels and buffered channels examples
+15.2k Golang : How to add color to string?
+10.1k Golang : Identifying Golang HTTP client request
+6.5k Golang : Map within a map example
+15.3k Golang : Get query string value on a POST request
+7.9k Golang : How to feed or take banana with Gorilla Web Toolkit Session package
+6.3k Golang : Selection sort example
+5.9k Golang : Extract unicode string from another unicode string example
+10.6k Android Studio : Simple input textbox and intercept key example
+15.3k Golang : How to get Unix file descriptor for console and file