1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-08 05:47:07 +09:00
anytype-heart/util/console/console.go
AnastasiaShemyakinskaya 033c6bbf05
GO-551: removed unused code
Signed-off-by: AnastasiaShemyakinskaya <shem98a@mail.ru>
2022-12-22 16:33:54 +03:00

19 lines
419 B
Go

package console
import (
"fmt"
"os"
"github.com/logrusorgru/aurora"
)
func Success(format string, args ...interface{}) {
fmt.Println(aurora.Sprintf(aurora.Green("> Success! %s"),
aurora.Sprintf(aurora.BrightBlack(format), args...)))
}
func Fatal(format string, args ...interface{}) {
fmt.Println(aurora.Sprintf(aurora.Red("> Fatal! %s"),
aurora.Sprintf(aurora.BrightBlack(format), args...)))
os.Exit(1)
}