HasPrefix tests whether the string s begins with prefix: strings.HasPrefix(s, prefix string) bool HasSuffix tests whether the string s end with suffix: strings.HasSuffix(s, suffix string) bool package main import ( "fmt" "strings" ...
Markdown supported · ⌘↵ to post
No responses yet.