mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
Add comment for Format method so that you can know Layout method. (#3230)
This commit is contained in:
@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user