main.go   A
last analyzed

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A main.main 0 7 1
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