project init

This commit is contained in:
liangzy 2020-08-31 11:07:18 +08:00
parent b5660e8c0a
commit ba354729eb
2 changed files with 19 additions and 12 deletions

5
cmd/new.go Normal file
View File

@ -0,0 +1,5 @@
package cmd
func New() {
}

26
main.go
View File

@ -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()
}