github.com/goplus/igop@v0.25.0/pkg/text/template/go114_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package template
     6  
     7  import (
     8  	q "text/template"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.Package{
    17  		Name: "template",
    18  		Path: "text/template",
    19  		Deps: map[string]string{
    20  			"bytes":               "bytes",
    21  			"errors":              "errors",
    22  			"fmt":                 "fmt",
    23  			"internal/fmtsort":    "fmtsort",
    24  			"io":                  "io",
    25  			"io/ioutil":           "ioutil",
    26  			"net/url":             "url",
    27  			"path/filepath":       "filepath",
    28  			"reflect":             "reflect",
    29  			"runtime":             "runtime",
    30  			"strings":             "strings",
    31  			"sync":                "sync",
    32  			"text/template/parse": "parse",
    33  			"unicode":             "unicode",
    34  			"unicode/utf8":        "utf8",
    35  		},
    36  		Interfaces: map[string]reflect.Type{},
    37  		NamedTypes: map[string]reflect.Type{
    38  			"ExecError": reflect.TypeOf((*q.ExecError)(nil)).Elem(),
    39  			"FuncMap":   reflect.TypeOf((*q.FuncMap)(nil)).Elem(),
    40  			"Template":  reflect.TypeOf((*q.Template)(nil)).Elem(),
    41  		},
    42  		AliasTypes: map[string]reflect.Type{},
    43  		Vars:       map[string]reflect.Value{},
    44  		Funcs: map[string]reflect.Value{
    45  			"HTMLEscape":       reflect.ValueOf(q.HTMLEscape),
    46  			"HTMLEscapeString": reflect.ValueOf(q.HTMLEscapeString),
    47  			"HTMLEscaper":      reflect.ValueOf(q.HTMLEscaper),
    48  			"IsTrue":           reflect.ValueOf(q.IsTrue),
    49  			"JSEscape":         reflect.ValueOf(q.JSEscape),
    50  			"JSEscapeString":   reflect.ValueOf(q.JSEscapeString),
    51  			"JSEscaper":        reflect.ValueOf(q.JSEscaper),
    52  			"Must":             reflect.ValueOf(q.Must),
    53  			"New":              reflect.ValueOf(q.New),
    54  			"ParseFiles":       reflect.ValueOf(q.ParseFiles),
    55  			"ParseGlob":        reflect.ValueOf(q.ParseGlob),
    56  			"URLQueryEscaper":  reflect.ValueOf(q.URLQueryEscaper),
    57  		},
    58  		TypedConsts:   map[string]igop.TypedConst{},
    59  		UntypedConsts: map[string]igop.UntypedConst{},
    60  	})
    61  }