Commit 0ffbc52
committed
json: encoder now has pretty print options.
... with no way to configure them yet, admittedly.
I don't want to further bifrucate the already alarming number of
top-level methods there are for setting up your marshallers and
unmarshallers. It's probably time to get a move-on on those
options structs and actually make them do some work.
... oooh. And we can make those a lot less ugly now that golang
has aliases. That'll let us put the configuration struct types in
their relevant packages, and alias them out to the top level package
with all its other convenience methods.
Signed-off-by: Eric Myhre <hash@exultant.us>1 parent e8b5eff commit 0ffbc52
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
| |||
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| 162 | + | |
152 | 163 | | |
153 | 164 | | |
154 | 165 | | |
| |||
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
170 | 185 | | |
171 | 186 | | |
172 | 187 | | |
| |||
0 commit comments