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
+8.1k Golang : Randomize letters from a string example
+20.6k Golang : Secure(TLS) connection between server and client
+12.3k Golang : How to check if a string starts or ends with certain characters or words?
+7.8k Golang : Load DSA public key from file example
+30.4k Golang : How to verify uploaded file is image or allowed file types
+14.9k Golang : Submit web forms without browser by http.PostForm example
+31.7k Golang : How to convert(cast) string to IP address?
+16.3k Golang : Find out mime type from bytes in buffer
+87.8k Golang : How to convert character to ASCII and back
+7.6k Golang : Convert(cast) io.Reader type to string
+5.6k Swift : Get substring with rangeOfString() function example