DefaultWriterOptions returns the default writer options.
()
| 17 | |
| 18 | // DefaultWriterOptions returns the default writer options. |
| 19 | func DefaultWriterOptions() WriterOptions { |
| 20 | return WriterOptions{ |
| 21 | Compact: false, |
| 22 | Indent: " ", |
| 23 | Ext: make(map[string]string), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // Writer writes a value to a byte slice. |
| 28 | type Writer interface { |
no outgoing calls