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
+9.4k Golang : Apply Histogram Equalization to color images
+7.8k Golang : Example of how to detect which type of script a word belongs to
+8.1k Golang : Check from web if Go application is running or not
+8.3k Golang : Check if integer is power of four example
+51.1k Golang : Disable security check for HTTPS(SSL) with bad or expired certificate
+11.1k Golang : Web routing/multiplex example
+5.1k Golang : Check if a word is countable or not
+7.2k Ubuntu : connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream
+5.8k Golang : Launching your executable inside a console under Linux
+13.3k Golang : Date and Time formatting
+8.6k Golang : Progress bar with ∎ character
+13.6k Golang : reCAPTCHA example