From 3459bcfbc7adb4783a01c65e303663277d4f2766 Mon Sep 17 00:00:00 2001 From: beginman Date: Fri, 22 Dec 2017 20:54:49 +0800 Subject: [PATCH] add logo --- .gitignore | 2 ++ main.go | 4 ---- utils.go | 15 ++++++++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index c92c4d5..5b0b31b 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,5 @@ _testmain.go *.test *.prof +*.tar.gz +ydao diff --git a/main.go b/main.go index e89abfa..9514c8a 100755 --- a/main.go +++ b/main.go @@ -4,10 +4,6 @@ import ( "os" ) -var ( - proxy string -) - func main(){ if len(os.Args) == 1 { displayUsage() diff --git a/utils.go b/utils.go index aa75083..d4987c4 100644 --- a/utils.go +++ b/utils.go @@ -5,13 +5,22 @@ import ( "strings" "unicode" "runtime" - - "github.com/fatih/color" + "github.com/fatih/color" ) var ( version = "1.1" - logo = "ydao V%s 好好学学英语吧..." + logo = ` +██╗ ██╗██████╗ █████╗ ██████╗ +╚██╗ ██╔╝██╔══██╗██╔══██╗██╔═══██╗ + ╚████╔╝ ██║ ██║███████║██║ ██║ + ╚██╔╝ ██║ ██║██╔══██║██║ ██║ + ██║ ██████╔╝██║ ██║╚██████╔╝ + ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ + +ydao V%s 好好学学英语吧... + + ` ) func displayUsage() {