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

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