(w jsWriter, msg []byte, scratch []byte, depth int)
| 274 | } |
| 275 | |
| 276 | func rwTimeBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) { |
| 277 | var t time.Time |
| 278 | var err error |
| 279 | t, msg, err = ReadTimeBytes(msg) |
| 280 | if err != nil { |
| 281 | return msg, scratch, err |
| 282 | } |
| 283 | bts, err := t.MarshalJSON() |
| 284 | if err != nil { |
| 285 | return msg, scratch, err |
| 286 | } |
| 287 | _, err = w.Write(bts) |
| 288 | return msg, scratch, err |
| 289 | } |
| 290 | |
| 291 | func rwExtensionBytes(w jsWriter, msg []byte, scratch []byte, depth int) ([]byte, []byte, error) { |
| 292 | var err error |
nothing calls this directly
no test coverage detected
searching dependent graphs…