(time time.Time, layout string)
| 297 | } |
| 298 | |
| 299 | func (enc *jsonEncoder) AppendTimeLayout(time time.Time, layout string) { |
| 300 | enc.addElementSeparator() |
| 301 | enc.buf.AppendByte('"') |
| 302 | enc.buf.AppendTime(time, layout) |
| 303 | enc.buf.AppendByte('"') |
| 304 | } |
| 305 | |
| 306 | func (enc *jsonEncoder) AppendTime(val time.Time) { |
| 307 | cur := enc.buf.Len() |
nothing calls this directly
no test coverage detected