Go - init()

ZhangZhihui's Blog / 2023-08-29 / 原文

func init() {
    // Show file name and line number, instead of date and time.
    log.SetFlags(log.Lshortfile)
}