File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ func (r *RequestParams) GetTrimFileUint64(key string) uint64 {
174
174
return v
175
175
}
176
176
177
- // GetTrimFileUint64 same as GetTrimFile but it returns the value as uint.
177
+ // GetTrimFileUint same as GetTrimFile but it returns the value as uint.
178
178
func (r * RequestParams ) GetTrimFileUint (key string ) uint {
179
179
return uint (r .GetTrimFileUint64 (key ))
180
180
}
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ type Uploader struct {
336
336
Writer * multipart.Writer
337
337
}
338
338
339
- // AddFileSource adds a form field to the uploader with the given key.
339
+ // AddField adds a form field to the uploader with the given key.
340
340
func (u * Uploader ) AddField (key , value string ) error {
341
341
f , err := u .Writer .CreateFormField (key )
342
342
if err != nil {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ func (opts ListOptions) GetLimit() int {
59
59
return DefaultSize
60
60
}
61
61
62
- // GetLimit returns the OFFSET value of a query.
62
+ // GetOffset returns the OFFSET value of a query.
63
63
func (opts ListOptions ) GetOffset () int {
64
64
if opts .Page > 1 {
65
65
return (opts .Page - 1 ) * opts .GetLimit ()
You can’t perform that action at this time.
0 commit comments