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

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