upadted to 1.24.0; fixed stb and spiddped doubles in precene
This commit is contained in:
19
helper/sugar/console.go
Normal file
19
helper/sugar/console.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package sugar
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/logrusorgru/aurora/v4"
|
||||
)
|
||||
|
||||
func LogSuccess(msg string) {
|
||||
fmt.Printf("%s: %s\n", aurora.Green("SUCCESS"), aurora.Yellow(msg))
|
||||
}
|
||||
|
||||
func LogError(msg string) {
|
||||
fmt.Printf("%s: %s\n", aurora.Red("ERROR"), aurora.White(msg))
|
||||
}
|
||||
|
||||
func LogWarning(msg string) {
|
||||
fmt.Printf("%s: %s\n", aurora.Magenta("WARNING"), aurora.White(msg))
|
||||
}
|
||||
Reference in New Issue
Block a user