Add comment for Format method so that you can know Layout method. (#3230)

This commit is contained in:
zhangyuyu
2023-12-26 16:19:59 +08:00
committed by GitHub
parent 85d95e3e27
commit 16a43bcb6c

View File

@ -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 ""