CodeQL library for Go
codeql/go-all 2.1.3 (changelog, source)
Search

Module StringOps

Provides predicates and classes for working with string operations.

Import path

import semmle.go.StringOps

Classes

Concatenation

A data-flow node that performs string concatenation.

ConcatenationElement

An element of a string concatenation, which either itself performs a string concatenation or occurs as an operand in a string concatenation.

ConcatenationLeaf

An operand to a concatenation that is not itself a concatenation.

ConcatenationOperand

An operand in a string concatenation.

ConcatenationRoot

A data-flow node that performs a string concatenation, and is not an immediate operand in a larger string concatenation.

HasPrefix

An expression that is equivalent to strings.HasPrefix(A, B) or !strings.HasPrefix(A, B).

ReplaceAll

An expression that is equivalent to strings.ReplaceAll(s, old, new).

Modules

Concatenation

Provides predicates and classes for working with string concatenations.

Formatting

Provides predicates and classes for working with Printf-style formatters.

HasPrefix

Provides predicates and classes for working with prefix checks.

ReplaceAll

Provides predicates and classes for working with prefix checks.

Aliases

StartsWith

An expression that is equivalent to strings.HasPrefix(A, B) or !strings.HasPrefix(A, B).