13 lines
203 B
Go
13 lines
203 B
Go
package baseutils
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
// PrintLog 打印日志
|
|
func PrintLog(logStr string) {
|
|
currentTime := time.Now().Format("2006-01-02 15:04:05")
|
|
fmt.Println(currentTime + ": " + logStr)
|
|
}
|