-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
41 lines (39 loc) · 1.27 KB
/
main.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
package main
import (
"design_patterns/abstractfactory"
"design_patterns/adapter"
"design_patterns/builder"
"design_patterns/command"
"design_patterns/composite"
"design_patterns/decorator"
"design_patterns/factory"
"design_patterns/mediator"
"design_patterns/observer"
"design_patterns/state"
"design_patterns/strategy"
"fmt"
)
func main() {
abstractfactory.RunAbstractFactory()
fmt.Println("********************************************")
factory.RunFactory()
fmt.Println("********************************************")
builder.RunBuilder()
fmt.Println("********************************************")
adapter.RunAdapter()
fmt.Println("********************************************")
composite.RunComposite()
fmt.Println("********************************************")
decorator.RunDecorator()
fmt.Println("********************************************")
command.RunCommand()
fmt.Println("********************************************")
mediator.RunMediator()
fmt.Println("********************************************")
observer.RunObserver()
fmt.Println("********************************************")
state.RunState()
fmt.Println("********************************************")
strategy.RunStrategy()
fmt.Println("********************************************")
}