Prefix Suffix
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"
...
blog.cloudnativefolks.org1 min read