-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.go
34 lines (31 loc) · 1 KB
/
const.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
package main
import (
"os"
"os/exec"
"runtime"
)
const LOGO = `
░░
██░░
████
████░░██
██▒▒██████ _______ __ __ __
██▒▒██▒▒██ | ___| |.--| |.----. | |.---.-.-----.-----. ©
░░██▒▒▒▒▒▒▓▓ | ___| || _ || _| | || _ | | _ |
████▒▒░░▒▒██ |_______|__||_____||__| |__||___._|__|__|___ |
██▒▒░░░░▒▒████ |_____|
██▒▒░░░░░░▒▒██
▓▓▒▒▒▒░░▒▒▒▒██
▒▒▓▓▒▒▒▒▒▒▓▓▒▒
░░██████░░`
func cleanConsole() {
if runtime.GOOS == "windows" {
cmd := exec.Command("cmd", "/c", "cls")
cmd.Stdout = os.Stdout
_ = cmd.Run()
} else {
cmd := exec.Command("clear")
cmd.Stdout = os.Stdout
_ = cmd.Run()
}
}