main.main   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
dl 0
loc 7
rs 10
c 0
b 0
f 0
nop 0
1
/**
2
 * @author  : Jagepard <[email protected]>
3
 * @license https://mit-license.org/ MIT
4
 */
5
6
package main
7
8
func main() {
9
	notice := &NoticeHandler{name: "NoticeHandler"}
10
11
	notice.setNext(&WarningHandler{name: "WarningHandler"}).setNext(&ErrorHandler{name: "ErrorHandler"})
12
	notice.execute("NoticeHandler")
13
	notice.execute("WarningHandler")
14
	notice.execute("ErrorHandler")
15
}
16