| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package utils |
||
| 2 | |||
| 3 | import ( |
||
| 4 | "github.com/fatih/color" |
||
| 5 | ) |
||
| 6 | |||
| 7 | func CautionNotice(message string) { |
||
| 8 | infoMsg := color.New(color.FgHiYellow).Add(color.Bold).PrintlnFunc() |
||
| 9 | infoMsg(CenterString(message, 80)) |
||
| 10 | } |
||
| 11 | |||
| 12 | func InfoNotice(message string) { |
||
| 13 | infoMsg := color.New(color.FgBlue).Add(color.Bold).PrintlnFunc() |
||
| 14 | infoMsg(CenterString(message, 80)) |
||
| 15 | } |
||
| 16 | |||
| 17 | func ErrorNotice(message string) { |
||
| 18 | errorMsg := color.New(color.FgHiRed).Add(color.Bold).PrintlnFunc() |
||
| 19 | errorMsg(CenterString(message, 80)) |
||
| 20 | } |
||
| 21 | |||
| 22 | func SuccessNotice(message string) { |
||
| 23 | successMsg := color.New(color.FgHiGreen).Add(color.Bold).PrintlnFunc() |
||
| 24 | successMsg(CenterString(message, 80)) |
||
| 25 | } |
||
| 26 |