From 16a43bcb6cd5c48e64067251a5c715f1e6bd64b5 Mon Sep 17 00:00:00 2001 From: zhangyuyu <1580074674@qq.com> Date: Tue, 26 Dec 2023 16:19:59 +0800 Subject: [PATCH] Add comment for Format method so that you can know Layout method. (#3230) --- os/gtime/gtime_format.go | 1 + 1 file changed, 1 insertion(+) diff --git a/os/gtime/gtime_format.go b/os/gtime/gtime_format.go index fd1d214bac9..9214e4b2125 100644 --- a/os/gtime/gtime_format.go +++ b/os/gtime/gtime_format.go @@ -67,6 +67,7 @@ var ( ) // Format formats and returns the formatted result with custom `format`. +// Refer method Layout, if you want to follow stdlib layout. func (t *Time) Format(format string) string { if t == nil { return ""