[CMII] [Operator] accomplish - 1

This commit is contained in:
zeaslity
2024-01-24 13:53:05 +08:00
parent 4a6b11e345
commit 8d4e304237
21 changed files with 1148 additions and 78 deletions

View File

@@ -21,6 +21,16 @@ func BeautifulPrint(object interface{}) {
}
func BeautifulPrintToString(object interface{}) string {
bytes, err := json.MarshalIndent(object, "", " ")
if err != nil {
log.ErrorF("[BeautifulPrint] - json marshal error ! => %v", object)
}
return string(bytes)
}
func SplitLinePrint() {
fmt.Println()
fmt.Println()