Verifique o prefixo de string Golang
import (
"strings"
)
myString := "x-test"
result := strings.HasPrefix(s1, "x-")
TheLazyLemur
import (
"strings"
)
myString := "x-test"
result := strings.HasPrefix(s1, "x-")