Standard library / text/template/parse

text/template/parse.Mode

Bitmask controlling parser behavior. Combine flags using bitwise OR. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type Mode uint

Working Example

Example Snippetgo
package main
import (  "fmt"  "text/template/parse")
func main() {  var m parse.Mode = parse.ParseComments | parse.SkipFuncCheck  fmt.Println(m&parse.ParseComments != 0 && m&parse.SkipFuncCheck != 0)}
Go Reference