-
Notifications
You must be signed in to change notification settings - Fork 2
/
jin_object_get.go
81 lines (65 loc) · 2.67 KB
/
jin_object_get.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
package jin
// Get jin_object method for same function name with interpreter
func (j *JO) Get(path ...string) ([]byte, error) {
return Get(j.body, path...)
}
// GetString jin_object method for same function name with interpreter
func (j *JO) GetString(path ...string) (string, error) {
return GetString(j.body, path...)
}
// GetStringArray jin_object method for same function name with interpreter
func (j *JO) GetStringArray(path ...string) ([]string, error) {
return GetStringArray(j.body, path...)
}
// GetType jin_object method for same function name with interpreter
func (j *JO) GetType(path ...string) (string, error) {
return GetType(j.body, path...)
}
// GetBool jin_object method for same function name with interpreter
func (j *JO) GetBool(path ...string) (bool, error) {
return GetBool(j.body, path...)
}
// GetBoolArray jin_object method for same function name with interpreter
func (j *JO) GetBoolArray(path ...string) ([]bool, error) {
return GetBoolArray(j.body, path...)
}
// GetFloat jin_object method for same function name with interpreter
func (j *JO) GetFloat(path ...string) (float64, error) {
return GetFloat(j.body, path...)
}
// GetFloatArray jin_object method for same function name with interpreter
func (j *JO) GetFloatArray(path ...string) ([]float64, error) {
return GetFloatArray(j.body, path...)
}
// GetInt jin_object method for same function name with interpreter
func (j *JO) GetInt(path ...string) (int, error) {
return GetInt(j.body, path...)
}
// GetIntArray jin_object method for same function name with interpreter
func (j *JO) GetIntArray(path ...string) ([]int, error) {
return GetIntArray(j.body, path...)
}
// GetAll jin_object method for same function name with interpreter
func (j *JO) GetAll(keys []string, path ...string) ([]string, error) {
return GetAll(j.body, keys, path...)
}
// GetAllMap jin_object method for same function name with interpreter
func (j *JO) GetAllMap(keys []string, path ...string) (map[string]string, error) {
return GetAllMap(j.body, keys, path...)
}
// GetKeys jin_object method for same function name with interpreter
func (j *JO) GetKeys(path ...string) ([]string, error) {
return GetKeys(j.body, path...)
}
// GetValues jin_object method for same function name with interpreter
func (j *JO) GetValues(path ...string) ([]string, error) {
return GetValues(j.body, path...)
}
// GetKeysValues jin_object method for same function name with interpreter
func (j *JO) GetKeysValues(path ...string) ([]string, []string, error) {
return GetKeysValues(j.body, path...)
}
// GetMap jin_object method for same function name with interpreter
func (j *JO) GetMap(path ...string) (map[string]string, error) {
return GetMap(j.body, path...)
}