mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-14 09:07:07 +08:00
16 lines
265 B
Go
16 lines
265 B
Go
package common
|
|
|
|
import "fmt"
|
|
|
|
func ErrorPrint(s string) {
|
|
fmt.Printf("\x1b[%dm%v\x1b[0m\n", 31, s)
|
|
}
|
|
|
|
func SuccessPrint(s string) {
|
|
fmt.Printf("\x1b[%dm%v\x1b[0m\n", 32, s)
|
|
}
|
|
|
|
func WarningPrint(s string) {
|
|
fmt.Printf("\x1b[%dmWarning: But %v\x1b[0m\n", 33, s)
|
|
}
|