@@ -78,7 +78,7 @@ func (h *AppFacts) List() (list []api.Fact, err error)
78
78
func (h *AppFacts) Replace(facts []api.Fact) (err error)
79
79
Replace facts.
80
80
81
- func (h *AppFacts) Set(key string, value interface{} ) (err error)
81
+ func (h *AppFacts) Set(key string, value any ) (err error)
82
82
Set a fact (created as needed).
83
83
84
84
func (h *AppFacts) Source(source string)
@@ -178,19 +178,19 @@ func (r *Client) Delete(path string, params ...Param) (err error)
178
178
func (r *Client) FileGet(path, destination string) (err error)
179
179
FileGet downloads a file.
180
180
181
- func (r *Client) FilePut(path, source string, object interface{} ) (err error)
181
+ func (r *Client) FilePut(path, source string, object any ) (err error)
182
182
FilePut uploads a file. Returns the created File resource.
183
183
184
- func (r *Client) FileSend(path, method string, fields []Field, object interface{} ) (err error)
184
+ func (r *Client) FileSend(path, method string, fields []Field, object any ) (err error)
185
185
FileSend sends file upload from.
186
186
187
- func (r *Client) Get(path string, object interface{} , params ...Param) (err error)
187
+ func (r *Client) Get(path string, object any , params ...Param) (err error)
188
188
Get a resource.
189
189
190
- func (r *Client) Post(path string, object interface{} ) (err error)
190
+ func (r *Client) Post(path string, object any ) (err error)
191
191
Post a resource.
192
192
193
- func (r *Client) Put(path string, object interface{} , params ...Param) (err error)
193
+ func (r *Client) Put(path string, object any , params ...Param) (err error)
194
194
Put a resource.
195
195
196
196
func (r *Client) Reset()
@@ -262,7 +262,7 @@ type Param struct {
262
262
}
263
263
Param.
264
264
265
- type Params map[string]interface{}
265
+ type Params map[string]any
266
266
Params mapping.
267
267
268
268
type Path string
@@ -313,7 +313,7 @@ type Setting struct {
313
313
func (h *Setting) Bool(key string) (b bool, err error)
314
314
Bool setting value.
315
315
316
- func (h *Setting) Get(key string, v interface{} ) (err error)
316
+ func (h *Setting) Get(key string, v any ) (err error)
317
317
Get a setting by key.
318
318
319
319
func (h *Setting) Int(key string) (n int, err error)
@@ -384,7 +384,7 @@ type Task struct {
384
384
}
385
385
Task API.
386
386
387
- func (h *Task) Activity(entry string, x ...interface{} )
387
+ func (h *Task) Activity(entry string, x ...any )
388
388
Activity report addon activity. The description can be a printf style
389
389
format.
390
390
@@ -397,13 +397,13 @@ func (h *Task) Bucket() (b *Bucket)
397
397
func (h *Task) Completed(n int)
398
398
Completed report addon completed (N) items.
399
399
400
- func (h *Task) Data() (d map[string]interface{} )
400
+ func (h *Task) Data() (d map[string]any )
401
401
Data returns the addon data.
402
402
403
- func (h *Task) DataWith(object interface{} ) (err error)
403
+ func (h *Task) DataWith(object any ) (err error)
404
404
DataWith populates the addon data object.
405
405
406
- func (h *Task) Failed(reason string, x ...interface{} )
406
+ func (h *Task) Failed(reason string, x ...any )
407
407
Failed report addon failed. The reason can be a printf style format.
408
408
409
409
func (h *Task) Increment()
@@ -412,7 +412,7 @@ func (h *Task) Increment()
412
412
func (h *Task) Load()
413
413
Load a task by ID.
414
414
415
- func (h *Task) Result(object interface{} )
415
+ func (h *Task) Result(object any )
416
416
Result report addon result.
417
417
418
418
func (h *Task) Started()
0 commit comments