/
gen_html__template_linux_amd64.go
59 lines (51 loc) · 2.31 KB
/
gen_html__template_linux_amd64.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package stdgolibs
import (
pkg "html/template"
"reflect"
)
func init() {
registerValues("html/template", map[string]reflect.Value{
// Functions
"HTMLEscape": reflect.ValueOf(pkg.HTMLEscape),
"HTMLEscapeString": reflect.ValueOf(pkg.HTMLEscapeString),
"HTMLEscaper": reflect.ValueOf(pkg.HTMLEscaper),
"JSEscape": reflect.ValueOf(pkg.JSEscape),
"JSEscapeString": reflect.ValueOf(pkg.JSEscapeString),
"JSEscaper": reflect.ValueOf(pkg.JSEscaper),
"URLQueryEscaper": reflect.ValueOf(pkg.URLQueryEscaper),
"New": reflect.ValueOf(pkg.New),
"Must": reflect.ValueOf(pkg.Must),
"ParseFiles": reflect.ValueOf(pkg.ParseFiles),
"ParseGlob": reflect.ValueOf(pkg.ParseGlob),
"IsTrue": reflect.ValueOf(pkg.IsTrue),
"ParseFS": reflect.ValueOf(pkg.ParseFS),
// Consts
"OK": reflect.ValueOf(pkg.OK),
"ErrAmbigContext": reflect.ValueOf(pkg.ErrAmbigContext),
"ErrBadHTML": reflect.ValueOf(pkg.ErrBadHTML),
"ErrBranchEnd": reflect.ValueOf(pkg.ErrBranchEnd),
"ErrEndContext": reflect.ValueOf(pkg.ErrEndContext),
"ErrNoSuchTemplate": reflect.ValueOf(pkg.ErrNoSuchTemplate),
"ErrOutputContext": reflect.ValueOf(pkg.ErrOutputContext),
"ErrPartialCharset": reflect.ValueOf(pkg.ErrPartialCharset),
"ErrPartialEscape": reflect.ValueOf(pkg.ErrPartialEscape),
"ErrRangeLoopReentry": reflect.ValueOf(pkg.ErrRangeLoopReentry),
"ErrSlashAmbig": reflect.ValueOf(pkg.ErrSlashAmbig),
"ErrPredefinedEscaper": reflect.ValueOf(pkg.ErrPredefinedEscaper),
// Variables
})
registerTypes("html/template", map[string]reflect.Type{
// Non interfaces
"Template": reflect.TypeOf((*pkg.Template)(nil)).Elem(),
"FuncMap": reflect.TypeOf((*pkg.FuncMap)(nil)).Elem(),
"Error": reflect.TypeOf((*pkg.Error)(nil)).Elem(),
"ErrorCode": reflect.TypeOf((*pkg.ErrorCode)(nil)).Elem(),
"CSS": reflect.TypeOf((*pkg.CSS)(nil)).Elem(),
"HTML": reflect.TypeOf((*pkg.HTML)(nil)).Elem(),
"HTMLAttr": reflect.TypeOf((*pkg.HTMLAttr)(nil)).Elem(),
"JS": reflect.TypeOf((*pkg.JS)(nil)).Elem(),
"JSStr": reflect.TypeOf((*pkg.JSStr)(nil)).Elem(),
"URL": reflect.TypeOf((*pkg.URL)(nil)).Elem(),
"Srcset": reflect.TypeOf((*pkg.Srcset)(nil)).Elem(),
})
}