first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package baseutils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
// PrintLog 打印日志
|
||||
func PrintLog(logStr string) {
|
||||
currentTime := time.Now().Format("2006-01-02 15:04:05")
|
||||
fmt.Println(currentTime + ": " + logStr)
|
||||
}
|
||||
Reference in New Issue
Block a user