-
Notifications
You must be signed in to change notification settings - Fork 2
/
jin_object_others.go
38 lines (31 loc) · 1.24 KB
/
jin_object_others.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
package jin
// Delete jin_object method for same function name with interpreter
func (j *JO) Delete(path ...string) error {
var err error
j.body, err = Delete(j.body, path...)
return err
}
// IterateArray jin_object method for same function name with interpreter
func (j *JO) IterateArray(callback func([]byte) (bool, error), path ...string) error {
return IterateArray(j.body, callback, path...)
}
// IterateKeyValue jin_object method for same function name with interpreter
func (j *JO) IterateKeyValue(callback func([]byte, []byte) (bool, error), path ...string) error {
return IterateKeyValue(j.body, callback, path...)
}
// IsObject jin_object method for same function name with interpreter
func (j *JO) IsObject(path ...string) (bool, error) {
return IsObject(j.body, path...)
}
// IsArray jin_object method for same function name with interpreter
func (j *JO) IsArray(path ...string) (bool, error) {
return IsArray(j.body, path...)
}
// IsValue jin_object method for same function name with interpreter
func (j *JO) IsValue(path ...string) (bool, error) {
return IsValue(j.body, path...)
}
// IsEmpty jin_object method for same function name with interpreter
func (j *JO) IsEmpty(path ...string) (bool, error) {
return IsEmpty(j.body, path...)
}