github.com/goplus/gossa@v0.3.25/pkg/text/template/go117_export.go (about)

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