github.com/goplus/gossa@v0.3.25/pkg/text/template/go116_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.16,!go1.17 4 5 package template 6 7 import ( 8 q "text/template" 9 10 "reflect" 11 12 "github.com/goplus/gossa" 13 ) 14 15 func init() { 16 gossa.RegisterPackage(&gossa.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/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]gossa.NamedType{ 40 "ExecError": {reflect.TypeOf((*q.ExecError)(nil)).Elem(), "Error,Unwrap", ""}, 41 "FuncMap": {reflect.TypeOf((*q.FuncMap)(nil)).Elem(), "", ""}, 42 "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"}, 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]gossa.TypedConst{}, 62 UntypedConsts: map[string]gossa.UntypedConst{}, 63 }) 64 }