-
Notifications
You must be signed in to change notification settings - Fork 66
/
a_url.go
87 lines (69 loc) · 1.73 KB
/
a_url.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// This file is generated by generate-std.joke script. Do not edit manually!
package url
import (
. "github.com/candid82/joker/core"
"net/url"
)
var __path_escape__P ProcFn = __path_escape_
var path_escape_ Proc = Proc{Fn: __path_escape__P, Name: "path_escape_", Package: "std/url"}
func __path_escape_(_args []Object) Object {
_c := len(_args)
switch {
case _c == 1:
s := ExtractString(_args, 0)
_res := url.PathEscape(s)
return MakeString(_res)
default:
PanicArity(_c)
}
return NIL
}
var __path_unescape__P ProcFn = __path_unescape_
var path_unescape_ Proc = Proc{Fn: __path_unescape__P, Name: "path_unescape_", Package: "std/url"}
func __path_unescape_(_args []Object) Object {
_c := len(_args)
switch {
case _c == 1:
s := ExtractString(_args, 0)
_res := pathUnescape(s)
return MakeString(_res)
default:
PanicArity(_c)
}
return NIL
}
var __query_escape__P ProcFn = __query_escape_
var query_escape_ Proc = Proc{Fn: __query_escape__P, Name: "query_escape_", Package: "std/url"}
func __query_escape_(_args []Object) Object {
_c := len(_args)
switch {
case _c == 1:
s := ExtractString(_args, 0)
_res := url.QueryEscape(s)
return MakeString(_res)
default:
PanicArity(_c)
}
return NIL
}
var __query_unescape__P ProcFn = __query_unescape_
var query_unescape_ Proc = Proc{Fn: __query_unescape__P, Name: "query_unescape_", Package: "std/url"}
func __query_unescape_(_args []Object) Object {
_c := len(_args)
switch {
case _c == 1:
s := ExtractString(_args, 0)
_res := queryUnescape(s)
return MakeString(_res)
default:
PanicArity(_c)
}
return NIL
}
func Init() {
InternsOrThunks()
}
var urlNamespace = GLOBAL_ENV.EnsureSymbolIsLib(MakeSymbol("joker.url"))
func init() {
urlNamespace.Lazy = Init
}