增加控制台数据输出控制
This commit is contained in:
23
console_test.go
Normal file
23
console_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// Package util ...
|
||||
//
|
||||
// Description : util ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2023-04-04 16:21
|
||||
package util
|
||||
|
||||
import "testing"
|
||||
|
||||
func Test_console_Output(t *testing.T) {
|
||||
Console.Enable()
|
||||
var a = map[string]interface{}{
|
||||
"name": "baicha",
|
||||
}
|
||||
type U struct {
|
||||
Name string
|
||||
}
|
||||
b := &U{Name: "qinghuan"}
|
||||
c := U{Name: "test"}
|
||||
Console.Output(a, b, c)
|
||||
}
|
||||
Reference in New Issue
Block a user