/
strings.go
69 lines (66 loc) · 2.49 KB
/
strings.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
// this file was generated by gomacro command: import _b "strings"
// DO NOT EDIT! Any change will be lost when the file is re-generated
package imports
import (
. "reflect"
strings "strings"
)
// reflection: allow interpreted code to import "strings"
func init() {
Packages["strings"] = Package{
Name: "strings",
Binds: map[string]Value{
"Compare": ValueOf(strings.Compare),
"Contains": ValueOf(strings.Contains),
"ContainsAny": ValueOf(strings.ContainsAny),
"ContainsRune": ValueOf(strings.ContainsRune),
"Count": ValueOf(strings.Count),
"EqualFold": ValueOf(strings.EqualFold),
"Fields": ValueOf(strings.Fields),
"FieldsFunc": ValueOf(strings.FieldsFunc),
"HasPrefix": ValueOf(strings.HasPrefix),
"HasSuffix": ValueOf(strings.HasSuffix),
"Index": ValueOf(strings.Index),
"IndexAny": ValueOf(strings.IndexAny),
"IndexByte": ValueOf(strings.IndexByte),
"IndexFunc": ValueOf(strings.IndexFunc),
"IndexRune": ValueOf(strings.IndexRune),
"Join": ValueOf(strings.Join),
"LastIndex": ValueOf(strings.LastIndex),
"LastIndexAny": ValueOf(strings.LastIndexAny),
"LastIndexByte": ValueOf(strings.LastIndexByte),
"LastIndexFunc": ValueOf(strings.LastIndexFunc),
"Map": ValueOf(strings.Map),
"NewReader": ValueOf(strings.NewReader),
"NewReplacer": ValueOf(strings.NewReplacer),
"Repeat": ValueOf(strings.Repeat),
"Replace": ValueOf(strings.Replace),
"ReplaceAll": ValueOf(strings.ReplaceAll),
"Split": ValueOf(strings.Split),
"SplitAfter": ValueOf(strings.SplitAfter),
"SplitAfterN": ValueOf(strings.SplitAfterN),
"SplitN": ValueOf(strings.SplitN),
"Title": ValueOf(strings.Title),
"ToLower": ValueOf(strings.ToLower),
"ToLowerSpecial": ValueOf(strings.ToLowerSpecial),
"ToTitle": ValueOf(strings.ToTitle),
"ToTitleSpecial": ValueOf(strings.ToTitleSpecial),
"ToUpper": ValueOf(strings.ToUpper),
"ToUpperSpecial": ValueOf(strings.ToUpperSpecial),
"ToValidUTF8": ValueOf(strings.ToValidUTF8),
"Trim": ValueOf(strings.Trim),
"TrimFunc": ValueOf(strings.TrimFunc),
"TrimLeft": ValueOf(strings.TrimLeft),
"TrimLeftFunc": ValueOf(strings.TrimLeftFunc),
"TrimPrefix": ValueOf(strings.TrimPrefix),
"TrimRight": ValueOf(strings.TrimRight),
"TrimRightFunc": ValueOf(strings.TrimRightFunc),
"TrimSpace": ValueOf(strings.TrimSpace),
"TrimSuffix": ValueOf(strings.TrimSuffix),
}, Types: map[string]Type{
"Builder": TypeOf((*strings.Builder)(nil)).Elem(),
"Reader": TypeOf((*strings.Reader)(nil)).Elem(),
"Replacer": TypeOf((*strings.Replacer)(nil)).Elem(),
},
}
}