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.8k Golang : Natural string sorting example
+17k Golang : How to save log messages to file?
+6.2k Linux/Unix : Commands that you need to be careful about
+21.2k Golang : How to force compile or remove object files first before rebuild?
+20k Golang : How to run your code only once with sync.Once object
+9k Golang : Inject/embed Javascript before sending out to browser example
+21.1k Golang : For loop continue,break and range
+11.2k Google Maps URL parameters configuration
+11k How to test Facebook App on localhost ?
+55.3k Golang : Unmarshal JSON from http response
+5.6k Javascript : How to refresh page with JQuery ?
+14.4k Golang : Parsing or breaking down URL