/
Beautify.go
executable file
路40 lines (38 loc) 路 2.11 KB
/
Beautify.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
35
36
37
38
39
40
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Author:
* Edoardo Ottavianelli <edoardott@gmail.com>
*/
package utils
//Beautify : If the terminal size is enough, print the label PWD-SAFETY.
func Beautify() {
zeroLine := "********************************************************\n"
firstLine := "* _ __ _ *\n"
secondLine := "* _ ____ ____| |___ __ _ / _| ___| |_ _ _ *\n"
thirdLine := "* | '_ \\ \\ /\\ / / _` / __|/ _` | |_ / _ \\ __| | | | *\n"
fourthLine := "* | |_) \\ V V / (_| \\__ \\ (_| | _| __/ |_| |_| | *\n"
fifthLine := "* | .__/ \\_/\\_/ \\__,_|___/\\__,_|_| \\___|\\__|\\__, | *\n"
sixthLine := "* |_| |___/ *\n"
seventhLine := "* *\n"
eigthLine := "* https://github.com/edoardottt/pwdsafety *\n"
ninethLine := "* edoardottt, https://www.edoardoottavianelli.it *\n"
tenthLine := "* v0.1.3 *\n"
eleventhLine := "********************************************************\n"
beauty := zeroLine + firstLine + secondLine + thirdLine + fourthLine + fifthLine + sixthLine + seventhLine + eigthLine + ninethLine + tenthLine + eleventhLine
firstAdvice := " - Use a password manager\n"
secondAdvice := " - Don't use the same password for different services\n"
thirdAdvice := " - Enable 2FA when possible\n"
println(beauty + "\n" + firstAdvice + secondAdvice + thirdAdvice)
}