AddValue calls Marshal on v, passing a pointer to the builder to append to. If Marshal returns an error, it is set on the Builder so that subsequent appends don't have an effect.
(v MarshalingValue)
| 343 | // If Marshal returns an error, it is set on the Builder so that subsequent |
| 344 | // appends don't have an effect. |
| 345 | func (b *Builder) AddValue(v MarshalingValue) { |
| 346 | err := v.Marshal(b) |
| 347 | if err != nil { |
| 348 | b.err = err |
| 349 | } |
| 350 | } |