-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.go
64 lines (44 loc) · 1.13 KB
/
options.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
package debefix
type FSFileProviderOption interface {
GenerateOption
apply(*fsFileProvider)
}
type StringFileProviderOption func(*stringFileProvider)
type LoadOption interface {
GenerateOption
apply(*loader)
}
type ResolveOption interface {
GenerateOption
apply(*resolver)
}
type internalGenerateOption interface {
GenerateOption
apply(*generator)
}
type GenerateOption interface {
isGenerateOption()
}
type IsGenerateOption struct {
}
func (o IsGenerateOption) isGenerateOption() {}
type fnFSFileProviderOption func(item *fsFileProvider)
func (o fnFSFileProviderOption) apply(item *fsFileProvider) {
o(item)
}
func (o fnFSFileProviderOption) isGenerateOption() {}
type fnLoadOption func(item *loader)
func (o fnLoadOption) apply(item *loader) {
o(item)
}
func (o fnLoadOption) isGenerateOption() {}
type fnResolveOption func(item *resolver)
func (o fnResolveOption) apply(item *resolver) {
o(item)
}
func (o fnResolveOption) isGenerateOption() {}
type fnInternalGenerateOption func(item *generator)
func (o fnInternalGenerateOption) apply(item *generator) {
o(item)
}
func (o fnInternalGenerateOption) isGenerateOption() {}