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
+13.5k Facebook PHP getUser() returns 0
+10.9k Golang : Get UDP client IP address and differentiate clients by port number
+13.4k Golang : Read from buffered reader until specific number of bytes
+8.2k Golang : Qt splash screen with delay example
+31.6k Golang : Get local IP and MAC address
+10.5k Golang : Select region of interest with mouse click and crop from image
+11.6k Golang : Simple file scaning and remove virus example
+5k Golang : Constant and variable names in native language
+6.9k Golang : How to setup a disk space used monitoring service with Telegram bot
+11k Golang : Generate random elements without repetition or duplicate
+19.9k Golang : How to get time from unix nano example
+6.9k Nginx : Password protect a directory/folder