log function

This commit is contained in:
alessio 2016-08-04 21:57:40 +02:00
parent 7874ec7619
commit a90970fb06

View File

@ -4,6 +4,7 @@ import (
"github.com/fatih/color" "github.com/fatih/color"
"sync" "sync"
"fmt" "fmt"
"log"
) )
const( const(
@ -48,6 +49,10 @@ func Success(msg string){
fmt.Println(green(msg)) fmt.Println(green(msg))
} }
func LogSuccess(msg string){
log.Println(green(msg))
}
func (app *App) Information(){ func (app *App) Information(){
fmt.Println(blue(app.Name)+" - "+blue(app.Version)) fmt.Println(blue(app.Name)+" - "+blue(app.Version))