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
+10.5k Golang : Create matrix with Gonum Matrix package example
+5.9k Golang : Use NLP to get sentences for each paragraph example
+17k Golang : Fix cannot convert buffer (type *bytes.Buffer) to type string error
+8.3k Golang: Prevent over writing file with md5 hash
+5.4k How to check with curl if my website or the asset is gzipped ?
+8.8k Golang : On lambda, anonymous, inline functions and function literals
+13k Golang : Get terminal width and height example
+36.7k Golang : Display float in 2 decimal points and rounding up or down
+13.6k Golang : reCAPTCHA example
+9.6k Javascript : Read/parse JSON data from HTTP response
+5.2k Golang : Calculate half life decay example
+8.5k Golang : How to check if input string is a word?