Проверьте префикс строки Golang
import (
"strings"
)
myString := "x-test"
result := strings.HasPrefix(s1, "x-")
TheLazyLemur
import (
"strings"
)
myString := "x-test"
result := strings.HasPrefix(s1, "x-")