Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 7 commits into from
Dec 26, 2023
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