From ba354729ebf01344cd854e371c79460cf1de347b Mon Sep 17 00:00:00 2001 From: liangzy Date: Mon, 31 Aug 2020 11:07:18 +0800 Subject: [PATCH] project init --- cmd/new.go | 5 +++++ main.go | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 cmd/new.go diff --git a/cmd/new.go b/cmd/new.go new file mode 100644 index 0000000..2b90a40 --- /dev/null +++ b/cmd/new.go @@ -0,0 +1,5 @@ +package cmd + +func New() { + +} diff --git a/main.go b/main.go index 2ca5e96..eeb8e78 100644 --- a/main.go +++ b/main.go @@ -3,19 +3,21 @@ package main import ( "fmt" "github.com/gookit/color" + "golib.gaore.com/GaoreGo/beegoinit-cmd/cmd" ) func main() { - logo := " _____ ____________ _ _ _ \n" - logo += "| __ \\| ___ \\ ___ \\ (_) (_) | \n" - logo += "| | \\/| |_/ / |_/ / ___ ___ __ _ ___ _ _ __ _| |_ \n" - logo += "| | __ | /| ___ \\/ _ \\/ _ \\/ _` |/ _ \\ | | '_ \\| | __|\n" - logo += "| |_\\ \\| |\\ \\| |_/ / __/ __/ (_| | (_) | | | | | | | |_ \n" - logo += " \\____/\\_| \\_\\____/ \\___|\\___|\\__, |\\___/ |_|_| |_|_|\\__|\n" - logo += " __/ | \n" - logo += " |___/ \n\n" - logo += " ------ by http://www.patorjk.com/software/taag/ -------\n" - red := color.Red.Render - fmt.Println("how o %s", red("fheosidfoaisufo")) - color.Yellow.Println(logo) + logo := color.Yellow.Sprint(" _____ ____________ _ _ _ \n") + logo += color.Yellow.Sprint("| __ \\| ___ \\ ___ \\ (_) (_) | \n") + logo += color.Yellow.Sprint("| | \\/| |_/ / |_/ / ___ ___ __ _ ___ _ _ __ _| |_ \n") + logo += color.Yellow.Sprint("| | __ | /| ___ \\/ _ \\/ _ \\/ _` |/ _ \\ | | '_ \\| | __|\n") + logo += color.Yellow.Sprint("| |_\\ \\| |\\ \\| |_/ / __/ __/ (_| | (_) | | | | | | | |_ \n") + logo += color.Yellow.Sprint(" \\____/\\_| \\_\\____/ \\___|\\___|\\__, |\\___/ |_|_| |_|_|\\__|\n") + logo += color.Yellow.Sprint(" __/ | \n") + logo += color.Yellow.Sprint(" |___/ \n\n") + logo += color.Blue.Sprint(" ------ by http://www.patorjk.com/software/taag/ -------\n") + //red := color.Red.Render + //fmt.Println("how o %s", red(time.Now().Format(time.ANSIC))) + fmt.Println(logo) + cmd.New() }