log function
This commit is contained in:
parent
7874ec7619
commit
a90970fb06
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user