-
Notifications
You must be signed in to change notification settings - Fork 6
/
play_builder.go
41 lines (34 loc) · 1002 Bytes
/
play_builder.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
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
// Autogenerated by buildergenerator
package goexoml
//SetLoop sets Loop for Play struct instance
func (__play__ *Play) SetLoop(loop int) *Play {
__play__.Loop = loop
return __play__
}
//SetDigits sets Digits for Play struct instance
func (__play__ *Play) SetDigits(digits int) *Play {
__play__.Digits = digits
return __play__
}
//SetURL sets URL for Play struct instance
func (__play__ *Play) SetURL(url string) *Play {
__play__.URL = url
return __play__
}
//NewPlay return a new Play pointer
func NewPlay() *Play {
return new(Play)
}
//IPlay The interface that satisfies all the methods for this struct
//IPlay asserts implementation of setters for all the fields of Play
type IPlay interface {
SetLoop(loop int) *Play
SetDigits(digits int) *Play
SetURL(url string) *Play
}
//AddPlay appends the verb to response
func (r *Response) AddPlay(play IPlay) *Response {
r.Response = append(r.Response, play)
return r
}