-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildify.out.go
64 lines (53 loc) · 1.18 KB
/
buildify.out.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
// Code generated by "buildify some_strcuts.go CStruct"; DO NOT EDIT.
package main
import (
fmt "fmt"
boom "github.com/tyjet/buildify/drinks"
food "github.com/tyjet/buildify/food"
time "time"
)
type CStructBuilder struct {
grapes fmt.Formatter
bStruct BStruct
ticker time.Ticker
bird food.Bird
liquid boom.Liquid
lemons AStruct
}
func (b *CStructBuilder) BStruct(bStruct BStruct) *CStructBuilder {
b.bStruct = bStruct
return b
}
func (b *CStructBuilder) Ticker(ticker time.Ticker) *CStructBuilder {
b.ticker = ticker
return b
}
func (b *CStructBuilder) Bird(bird food.Bird) *CStructBuilder {
b.bird = bird
return b
}
func (b *CStructBuilder) Liquid(liquid boom.Liquid) *CStructBuilder {
b.liquid = liquid
return b
}
func (b *CStructBuilder) Lemons(lemons AStruct) *CStructBuilder {
b.lemons = lemons
return b
}
func (b *CStructBuilder) Grapes(grapes fmt.Formatter) *CStructBuilder {
b.grapes = grapes
return b
}
func NewCStructBuilder() *CStructBuilder {
return &CStructBuilder{}
}
func (b *CStructBuilder) Build() CStruct {
return CStruct{
BStruct: b.bStruct,
Ticker: b.ticker,
Bird: b.bird,
Liquid: b.liquid,
Lemons: b.lemons,
Grapes: b.grapes,
}
}