codeql/go-all
2.1.3
For other CodeQL resources, including tutorials and examples, see the CodeQL documentation
.
Provides predicates and classes for working with prefix checks.
import semmle.go.StringOps
An expression that is equivalent to strings.HasPrefix(A, B) or !strings.HasPrefix(A, B).
strings.HasPrefix(A, B)
!strings.HasPrefix(A, B)