We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f266d5 commit 38b74c6Copy full SHA for 38b74c6
time_legacy.go
@@ -15,5 +15,5 @@ import "time"
15
// appendTimeFormat is used as an optimization on Go 1.5+ to avoid the dynamic
16
// memory allocation that happens for the string returned by time.Format.
17
func appendTimeFormat(b []byte, t time.Time, format string) []byte {
18
- return append(b, time.Format(format)...)
+ return append(b, t.Format(format)...)
19
}
0 commit comments