-
Notifications
You must be signed in to change notification settings - Fork 2
/
jin_object_set.go
43 lines (37 loc) · 1.23 KB
/
jin_object_set.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
package jin
// Set jin_object method for same function name with interpreter
func (j *JO) Set(newValue []byte, path ...string) error {
var err error
j.body, err = Set(j.body, newValue, path...)
return err
}
// SetString jin_object method for same function name with interpreter
func (j *JO) SetString(newValue string, path ...string) error {
var err error
j.body, err = SetString(j.body, newValue, path...)
return err
}
// SetInt jin_object method for same function name with interpreter
func (j *JO) SetInt(newValue int, path ...string) error {
var err error
j.body, err = SetInt(j.body, newValue, path...)
return err
}
// SetFloat jin_object method for same function name with interpreter
func (j *JO) SetFloat(newValue float64, path ...string) error {
var err error
j.body, err = SetFloat(j.body, newValue, path...)
return err
}
// SetBool jin_object method for same function name with interpreter
func (j *JO) SetBool(newValue bool, path ...string) error {
var err error
j.body, err = SetBool(j.body, newValue, path...)
return err
}
// SetKey jin_object method for same function name with interpreter
func (j *JO) SetKey(newKey string, path ...string) error {
var err error
j.body, err = SetKey(j.body, newKey, path...)
return err
}