forked from cuelang/cue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg.go
45 lines (39 loc) · 818 Bytes
/
pkg.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
// Code generated by go generate. DO NOT EDIT.
//go:generate rm pkg.go
//go:generate go run ../gen/gen.go
package html
import (
"github.com/solo-io/cue/internal/core/adt"
"github.com/solo-io/cue/pkg/internal"
)
func init() {
internal.Register("html", pkg)
}
var _ = adt.TopKind // in case the adt package isn't used
var pkg = &internal.Package{
Native: []*internal.Builtin{{
Name: "Escape",
Params: []internal.Param{
{Kind: adt.StringKind},
},
Result: adt.StringKind,
Func: func(c *internal.CallCtxt) {
s := c.String(0)
if c.Do() {
c.Ret = Escape(s)
}
},
}, {
Name: "Unescape",
Params: []internal.Param{
{Kind: adt.StringKind},
},
Result: adt.StringKind,
Func: func(c *internal.CallCtxt) {
s := c.String(0)
if c.Do() {
c.Ret = Unescape(s)
}
},
}},
}