Standard library / text/template/parse
text/template/parse.NodeType.Type()
Returns the discriminator itself; commonly promoted by embedding. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (t NodeType) Type() NodeTypeReturn Value
NodeType
Returns the discriminator itself; commonly promoted by embedding.
Working Example
Example Snippetgo
package main
import ( "fmt" "text/template/parse")
func main() { fmt.Println(parse.NodeAction.Type() == parse.NodeAction) }