CodeQL library for Go
codeql/go-all 2.1.3 (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.

getReadVariable

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

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

toString

Gets a textual representation of this statement.

Charpred