A MarshalingValue marshals itself into a Builder.
| 333 | |
| 334 | // A MarshalingValue marshals itself into a Builder. |
| 335 | type MarshalingValue interface { |
| 336 | // Marshal is called by Builder.AddValue. It receives a pointer to a builder |
| 337 | // to marshal itself into. It may return an error that occurred during |
| 338 | // marshaling, such as unset or invalid values. |
| 339 | Marshal(b *Builder) error |
| 340 | } |
| 341 | |
| 342 | // AddValue calls Marshal on v, passing a pointer to the builder to append to. |
| 343 | // If Marshal returns an error, it is set on the Builder so that subsequent |
no outgoing calls
no test coverage detected
searching dependent graphs…