mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
yeah i should have done this before, i know
This commit is contained in:
commit
0091ffdbb3
33 changed files with 25678 additions and 0 deletions
36
core/swag.go
Normal file
36
core/swag.go
Normal file
|
@ -0,0 +1,36 @@
|
|||
package core
|
||||
|
||||
// https://misc.flogisoft.com/bash/tip_colors_and_formatting
|
||||
const (
|
||||
BOLD = "\033[1m"
|
||||
DIM = "\033[2m"
|
||||
|
||||
RED = "\033[31m"
|
||||
GREEN = "\033[32m"
|
||||
YELLOW = "\033[33m"
|
||||
|
||||
RESET = "\033[0m"
|
||||
)
|
||||
|
||||
const ON = GREEN + "✔" + RESET
|
||||
const OFF = RED + "✘" + RESET
|
||||
|
||||
func Bold(s string) string {
|
||||
return BOLD + s + RESET
|
||||
}
|
||||
|
||||
func Dim(s string) string {
|
||||
return DIM + s + RESET
|
||||
}
|
||||
|
||||
func Red(s string) string {
|
||||
return RED + s + RESET
|
||||
}
|
||||
|
||||
func Green(s string) string {
|
||||
return GREEN + s + RESET
|
||||
}
|
||||
|
||||
func Yellow(s string) string {
|
||||
return YELLOW + s + RESET
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue