github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_17_text_template.go (about)

     1  // Code generated by 'yaegi extract text/template'. DO NOT EDIT.
     2  
     3  //go:build go1.17
     4  // +build go1.17
     5  
     6  package stdlib
     7  
     8  import (
     9  	"reflect"
    10  	"text/template"
    11  )
    12  
    13  func init() {
    14  	Symbols["text/template/template"] = map[string]reflect.Value{
    15  		// function, constant and variable definitions
    16  		"HTMLEscape":       reflect.ValueOf(template.HTMLEscape),
    17  		"HTMLEscapeString": reflect.ValueOf(template.HTMLEscapeString),
    18  		"HTMLEscaper":      reflect.ValueOf(template.HTMLEscaper),
    19  		"IsTrue":           reflect.ValueOf(template.IsTrue),
    20  		"JSEscape":         reflect.ValueOf(template.JSEscape),
    21  		"JSEscapeString":   reflect.ValueOf(template.JSEscapeString),
    22  		"JSEscaper":        reflect.ValueOf(template.JSEscaper),
    23  		"Must":             reflect.ValueOf(template.Must),
    24  		"New":              reflect.ValueOf(template.New),
    25  		"ParseFS":          reflect.ValueOf(template.ParseFS),
    26  		"ParseFiles":       reflect.ValueOf(template.ParseFiles),
    27  		"ParseGlob":        reflect.ValueOf(template.ParseGlob),
    28  		"URLQueryEscaper":  reflect.ValueOf(template.URLQueryEscaper),
    29  
    30  		// type definitions
    31  		"ExecError": reflect.ValueOf((*template.ExecError)(nil)),
    32  		"FuncMap":   reflect.ValueOf((*template.FuncMap)(nil)),
    33  		"Template":  reflect.ValueOf((*template.Template)(nil)),
    34  	}
    35  }