codeql/go-all
4.2.5-dev
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)