github.com/goplus/gossa@v0.3.25/pkg/html/template/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package template 7 8 import ( 9 q "html/template" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "template", 20 Path: "html/template", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "encoding/json": "json", 24 "fmt": "fmt", 25 "html": "html", 26 "io": "io", 27 "io/fs": "fs", 28 "os": "os", 29 "path": "path", 30 "path/filepath": "filepath", 31 "reflect": "reflect", 32 "strconv": "strconv", 33 "strings": "strings", 34 "sync": "sync", 35 "text/template": "template", 36 "text/template/parse": "parse", 37 "unicode": "unicode", 38 "unicode/utf8": "utf8", 39 }, 40 Interfaces: map[string]reflect.Type{}, 41 NamedTypes: map[string]gossa.NamedType{ 42 "CSS": {reflect.TypeOf((*q.CSS)(nil)).Elem(), "", ""}, 43 "Error": {reflect.TypeOf((*q.Error)(nil)).Elem(), "", "Error"}, 44 "ErrorCode": {reflect.TypeOf((*q.ErrorCode)(nil)).Elem(), "", ""}, 45 "FuncMap": {reflect.TypeOf((*q.FuncMap)(nil)).Elem(), "", ""}, 46 "HTML": {reflect.TypeOf((*q.HTML)(nil)).Elem(), "", ""}, 47 "HTMLAttr": {reflect.TypeOf((*q.HTMLAttr)(nil)).Elem(), "", ""}, 48 "JS": {reflect.TypeOf((*q.JS)(nil)).Elem(), "", ""}, 49 "JSStr": {reflect.TypeOf((*q.JSStr)(nil)).Elem(), "", ""}, 50 "Srcset": {reflect.TypeOf((*q.Srcset)(nil)).Elem(), "", ""}, 51 "Template": {reflect.TypeOf((*q.Template)(nil)).Elem(), "", "AddParseTree,Clone,DefinedTemplates,Delims,Execute,ExecuteTemplate,Funcs,Lookup,Name,New,Option,Parse,ParseFS,ParseFiles,ParseGlob,Templates,checkCanParse,escape,lookupAndEscapeTemplate,new"}, 52 "URL": {reflect.TypeOf((*q.URL)(nil)).Elem(), "", ""}, 53 }, 54 AliasTypes: map[string]reflect.Type{}, 55 Vars: map[string]reflect.Value{}, 56 Funcs: map[string]reflect.Value{ 57 "HTMLEscape": reflect.ValueOf(q.HTMLEscape), 58 "HTMLEscapeString": reflect.ValueOf(q.HTMLEscapeString), 59 "HTMLEscaper": reflect.ValueOf(q.HTMLEscaper), 60 "IsTrue": reflect.ValueOf(q.IsTrue), 61 "JSEscape": reflect.ValueOf(q.JSEscape), 62 "JSEscapeString": reflect.ValueOf(q.JSEscapeString), 63 "JSEscaper": reflect.ValueOf(q.JSEscaper), 64 "Must": reflect.ValueOf(q.Must), 65 "New": reflect.ValueOf(q.New), 66 "ParseFS": reflect.ValueOf(q.ParseFS), 67 "ParseFiles": reflect.ValueOf(q.ParseFiles), 68 "ParseGlob": reflect.ValueOf(q.ParseGlob), 69 "URLQueryEscaper": reflect.ValueOf(q.URLQueryEscaper), 70 }, 71 TypedConsts: map[string]gossa.TypedConst{ 72 "ErrAmbigContext": {reflect.TypeOf(q.ErrAmbigContext), constant.MakeInt64(int64(q.ErrAmbigContext))}, 73 "ErrBadHTML": {reflect.TypeOf(q.ErrBadHTML), constant.MakeInt64(int64(q.ErrBadHTML))}, 74 "ErrBranchEnd": {reflect.TypeOf(q.ErrBranchEnd), constant.MakeInt64(int64(q.ErrBranchEnd))}, 75 "ErrEndContext": {reflect.TypeOf(q.ErrEndContext), constant.MakeInt64(int64(q.ErrEndContext))}, 76 "ErrNoSuchTemplate": {reflect.TypeOf(q.ErrNoSuchTemplate), constant.MakeInt64(int64(q.ErrNoSuchTemplate))}, 77 "ErrOutputContext": {reflect.TypeOf(q.ErrOutputContext), constant.MakeInt64(int64(q.ErrOutputContext))}, 78 "ErrPartialCharset": {reflect.TypeOf(q.ErrPartialCharset), constant.MakeInt64(int64(q.ErrPartialCharset))}, 79 "ErrPartialEscape": {reflect.TypeOf(q.ErrPartialEscape), constant.MakeInt64(int64(q.ErrPartialEscape))}, 80 "ErrPredefinedEscaper": {reflect.TypeOf(q.ErrPredefinedEscaper), constant.MakeInt64(int64(q.ErrPredefinedEscaper))}, 81 "ErrRangeLoopReentry": {reflect.TypeOf(q.ErrRangeLoopReentry), constant.MakeInt64(int64(q.ErrRangeLoopReentry))}, 82 "ErrSlashAmbig": {reflect.TypeOf(q.ErrSlashAmbig), constant.MakeInt64(int64(q.ErrSlashAmbig))}, 83 "OK": {reflect.TypeOf(q.OK), constant.MakeInt64(int64(q.OK))}, 84 }, 85 UntypedConsts: map[string]gossa.UntypedConst{}, 86 }) 87 }