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

Class HtmlTemplate::TemplateRead

A read in an HTML template statement.

Import path

import semmle.go.frameworks.stdlib.HtmlTemplate

Direct supertypes

Known direct subtypes

Fields

Predicates

getEnclosingTextNode

Get the HTML element that contains this template read.

getFieldName

Gets the name of the field being read. This may include dots if nested fields are used.

getFile

Gets the file in which this read appears.

getLocation

Gets the location of this template statement.

getReadVariable

Gets the variable with fields that is read if arg is passed to this template execution.

toString

Gets a textual representation of this statement.

Charpred