-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrest_gen.go
397 lines (350 loc) · 15.5 KB
/
rest_gen.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
// Code generated by generate_rest.py; DO NOT EDIT.
package cli
import (
"time"
)
// []bool
// RestBoolsVar defines the []bool rest arguments with specified name.
// The argument p points to a []bool variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestBoolsVar(register, &p, "names", cli.Usage("Names of users"))
func RestBoolsVar(register Register, p *[]bool, name string, options ...RestOptionApplyer) error {
return RestVar(register, newBoolValues(p), name, options...)
}
// RestBools defines the []bool rest arguments with specified name.
// The return value is the address of a []bool variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestBools(register, "names", cli.Usage("Names of users"))
func RestBools(register Register, name string, options ...RestOptionApplyer) *[]bool {
p := new([]bool)
_ = RestBoolsVar(register, p, name, options...)
return p
}
// []uint8
// RestUint8sVar defines the []uint8 rest arguments with specified name.
// The argument p points to a []uint8 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint8sVar(register, &p, "names", cli.Usage("Names of users"))
func RestUint8sVar(register Register, p *[]uint8, name string, options ...RestOptionApplyer) error {
return RestVar(register, newUint8Values(p), name, options...)
}
// RestUint8s defines the []uint8 rest arguments with specified name.
// The return value is the address of a []uint8 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint8s(register, "names", cli.Usage("Names of users"))
func RestUint8s(register Register, name string, options ...RestOptionApplyer) *[]uint8 {
p := new([]uint8)
_ = RestUint8sVar(register, p, name, options...)
return p
}
// []uint16
// RestUint16sVar defines the []uint16 rest arguments with specified name.
// The argument p points to a []uint16 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint16sVar(register, &p, "names", cli.Usage("Names of users"))
func RestUint16sVar(register Register, p *[]uint16, name string, options ...RestOptionApplyer) error {
return RestVar(register, newUint16Values(p), name, options...)
}
// RestUint16s defines the []uint16 rest arguments with specified name.
// The return value is the address of a []uint16 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint16s(register, "names", cli.Usage("Names of users"))
func RestUint16s(register Register, name string, options ...RestOptionApplyer) *[]uint16 {
p := new([]uint16)
_ = RestUint16sVar(register, p, name, options...)
return p
}
// []uint32
// RestUint32sVar defines the []uint32 rest arguments with specified name.
// The argument p points to a []uint32 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint32sVar(register, &p, "names", cli.Usage("Names of users"))
func RestUint32sVar(register Register, p *[]uint32, name string, options ...RestOptionApplyer) error {
return RestVar(register, newUint32Values(p), name, options...)
}
// RestUint32s defines the []uint32 rest arguments with specified name.
// The return value is the address of a []uint32 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint32s(register, "names", cli.Usage("Names of users"))
func RestUint32s(register Register, name string, options ...RestOptionApplyer) *[]uint32 {
p := new([]uint32)
_ = RestUint32sVar(register, p, name, options...)
return p
}
// []uint64
// RestUint64sVar defines the []uint64 rest arguments with specified name.
// The argument p points to a []uint64 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint64sVar(register, &p, "names", cli.Usage("Names of users"))
func RestUint64sVar(register Register, p *[]uint64, name string, options ...RestOptionApplyer) error {
return RestVar(register, newUint64Values(p), name, options...)
}
// RestUint64s defines the []uint64 rest arguments with specified name.
// The return value is the address of a []uint64 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUint64s(register, "names", cli.Usage("Names of users"))
func RestUint64s(register Register, name string, options ...RestOptionApplyer) *[]uint64 {
p := new([]uint64)
_ = RestUint64sVar(register, p, name, options...)
return p
}
// []int8
// RestInt8sVar defines the []int8 rest arguments with specified name.
// The argument p points to a []int8 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt8sVar(register, &p, "names", cli.Usage("Names of users"))
func RestInt8sVar(register Register, p *[]int8, name string, options ...RestOptionApplyer) error {
return RestVar(register, newInt8Values(p), name, options...)
}
// RestInt8s defines the []int8 rest arguments with specified name.
// The return value is the address of a []int8 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt8s(register, "names", cli.Usage("Names of users"))
func RestInt8s(register Register, name string, options ...RestOptionApplyer) *[]int8 {
p := new([]int8)
_ = RestInt8sVar(register, p, name, options...)
return p
}
// []int16
// RestInt16sVar defines the []int16 rest arguments with specified name.
// The argument p points to a []int16 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt16sVar(register, &p, "names", cli.Usage("Names of users"))
func RestInt16sVar(register Register, p *[]int16, name string, options ...RestOptionApplyer) error {
return RestVar(register, newInt16Values(p), name, options...)
}
// RestInt16s defines the []int16 rest arguments with specified name.
// The return value is the address of a []int16 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt16s(register, "names", cli.Usage("Names of users"))
func RestInt16s(register Register, name string, options ...RestOptionApplyer) *[]int16 {
p := new([]int16)
_ = RestInt16sVar(register, p, name, options...)
return p
}
// []int32
// RestInt32sVar defines the []int32 rest arguments with specified name.
// The argument p points to a []int32 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt32sVar(register, &p, "names", cli.Usage("Names of users"))
func RestInt32sVar(register Register, p *[]int32, name string, options ...RestOptionApplyer) error {
return RestVar(register, newInt32Values(p), name, options...)
}
// RestInt32s defines the []int32 rest arguments with specified name.
// The return value is the address of a []int32 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt32s(register, "names", cli.Usage("Names of users"))
func RestInt32s(register Register, name string, options ...RestOptionApplyer) *[]int32 {
p := new([]int32)
_ = RestInt32sVar(register, p, name, options...)
return p
}
// []int64
// RestInt64sVar defines the []int64 rest arguments with specified name.
// The argument p points to a []int64 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt64sVar(register, &p, "names", cli.Usage("Names of users"))
func RestInt64sVar(register Register, p *[]int64, name string, options ...RestOptionApplyer) error {
return RestVar(register, newInt64Values(p), name, options...)
}
// RestInt64s defines the []int64 rest arguments with specified name.
// The return value is the address of a []int64 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInt64s(register, "names", cli.Usage("Names of users"))
func RestInt64s(register Register, name string, options ...RestOptionApplyer) *[]int64 {
p := new([]int64)
_ = RestInt64sVar(register, p, name, options...)
return p
}
// []float32
// RestFloat32sVar defines the []float32 rest arguments with specified name.
// The argument p points to a []float32 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestFloat32sVar(register, &p, "names", cli.Usage("Names of users"))
func RestFloat32sVar(register Register, p *[]float32, name string, options ...RestOptionApplyer) error {
return RestVar(register, newFloat32Values(p), name, options...)
}
// RestFloat32s defines the []float32 rest arguments with specified name.
// The return value is the address of a []float32 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestFloat32s(register, "names", cli.Usage("Names of users"))
func RestFloat32s(register Register, name string, options ...RestOptionApplyer) *[]float32 {
p := new([]float32)
_ = RestFloat32sVar(register, p, name, options...)
return p
}
// []float64
// RestFloat64sVar defines the []float64 rest arguments with specified name.
// The argument p points to a []float64 variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestFloat64sVar(register, &p, "names", cli.Usage("Names of users"))
func RestFloat64sVar(register Register, p *[]float64, name string, options ...RestOptionApplyer) error {
return RestVar(register, newFloat64Values(p), name, options...)
}
// RestFloat64s defines the []float64 rest arguments with specified name.
// The return value is the address of a []float64 variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestFloat64s(register, "names", cli.Usage("Names of users"))
func RestFloat64s(register Register, name string, options ...RestOptionApplyer) *[]float64 {
p := new([]float64)
_ = RestFloat64sVar(register, p, name, options...)
return p
}
// []string
// RestStringsVar defines the []string rest arguments with specified name.
// The argument p points to a []string variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestStringsVar(register, &p, "names", cli.Usage("Names of users"))
func RestStringsVar(register Register, p *[]string, name string, options ...RestOptionApplyer) error {
return RestVar(register, newStringValues(p), name, options...)
}
// RestStrings defines the []string rest arguments with specified name.
// The return value is the address of a []string variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestStrings(register, "names", cli.Usage("Names of users"))
func RestStrings(register Register, name string, options ...RestOptionApplyer) *[]string {
p := new([]string)
_ = RestStringsVar(register, p, name, options...)
return p
}
// []int
// RestIntsVar defines the []int rest arguments with specified name.
// The argument p points to a []int variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestIntsVar(register, &p, "names", cli.Usage("Names of users"))
func RestIntsVar(register Register, p *[]int, name string, options ...RestOptionApplyer) error {
return RestVar(register, newIntValues(p), name, options...)
}
// RestInts defines the []int rest arguments with specified name.
// The return value is the address of a []int variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestInts(register, "names", cli.Usage("Names of users"))
func RestInts(register Register, name string, options ...RestOptionApplyer) *[]int {
p := new([]int)
_ = RestIntsVar(register, p, name, options...)
return p
}
// []uint
// RestUintsVar defines the []uint rest arguments with specified name.
// The argument p points to a []uint variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUintsVar(register, &p, "names", cli.Usage("Names of users"))
func RestUintsVar(register Register, p *[]uint, name string, options ...RestOptionApplyer) error {
return RestVar(register, newUintValues(p), name, options...)
}
// RestUints defines the []uint rest arguments with specified name.
// The return value is the address of a []uint variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestUints(register, "names", cli.Usage("Names of users"))
func RestUints(register Register, name string, options ...RestOptionApplyer) *[]uint {
p := new([]uint)
_ = RestUintsVar(register, p, name, options...)
return p
}
// []time.Duration
// RestDurationsVar defines the []time.Duration rest arguments with specified name.
// The argument p points to a []time.Duration variable in which to store values of arguments.
// The return value will be an error from the register.RegisterRestArgs if it
// failed to register the rest arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestDurationsVar(register, &p, "names", cli.Usage("Names of users"))
func RestDurationsVar(register Register, p *[]time.Duration, name string, options ...RestOptionApplyer) error {
return RestVar(register, newDurationValues(p), name, options...)
}
// RestDurations defines the []time.Duration rest arguments with specified name.
// The return value is the address of a []time.Duration variable that stores values of arguments.
//
// A usage may be set by passing a cli.Usage.
//
// _ = cli.RestDurations(register, "names", cli.Usage("Names of users"))
func RestDurations(register Register, name string, options ...RestOptionApplyer) *[]time.Duration {
p := new([]time.Duration)
_ = RestDurationsVar(register, p, name, options...)
return p
}