blob: 496a72f3968192051ad8b6fca0925d5b13628fb2 [file] [log] [blame]
// Copyright 2016 ~ 2018 AlexStocks(https://github.com/AlexStocks).
// All rights reserved. Use of this source code is
// governed by Apache License 2.0.
// package gxlog is based on log4go.
// pretty.go provides pretty format string
package gxlog
import (
"github.com/davecgh/go-spew/spew"
"github.com/k0kubun/pp"
)
func PrettyString(i interface{}) string {
return spew.Sdump(i)
}
func ColorSprint(i interface{}) string {
return pp.Sprint(i)
}
func ColorSprintln(i interface{}) string {
return pp.Sprintln(i)
}
func ColorSprintf(fmt string, args ...interface{}) string {
return pp.Sprintf(fmt, args...)
}
func ColorPrint(i interface{}) {
pp.Print(i)
}
func ColorPrintln(i interface{}) {
pp.Println(i)
}
func ColorPrintf(fmt string, args ...interface{}) {
pp.Printf(fmt, args...)
}