Skip to content

Commit

Permalink
Add comment for Format method so that you can know Layout method. (#3230
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zhangyuyu committed Dec 26, 2023
1 parent 85d95e3 commit 16a43bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os/gtime/gtime_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 16a43bc

Please sign in to comment.