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