You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most go libraries that handle marshaling/unmarshaling support encoding.TextMarshaler when marshaling.
Similar to how types that implement the toml.Marshaler interface, I would like types that implement
the encoding.TextMarshaler to be supported.
If a type implements both encoding.TextMarshaler and toml.Marshaler. The MarshalToml method should take precedence.
If that is a feature you want to integrate, I would be happy to implement it.
The text was updated successfully, but these errors were encountered:
With this PR the encoder now supports encoding.TextMarshaler.
Additionally, a bug is fixed, where the encoder does not notice a pointer
field that implements the toml.Marshaler interface.
fixespelletier#373
With this PR the encoder now supports encoding.TextMarshaler.
Additionally, a bug is fixed, where the encoder does not notice a pointer
field that implements the toml.Marshaler interface.
fixes#373
Most go libraries that handle marshaling/unmarshaling support
encoding.TextMarshaler
when marshaling.Similar to how types that implement the
toml.Marshaler
interface, I would like types that implementthe
encoding.TextMarshaler
to be supported.If a type implements both
encoding.TextMarshaler
andtoml.Marshaler
. TheMarshalToml
method should take precedence.If that is a feature you want to integrate, I would be happy to implement it.
The text was updated successfully, but these errors were encountered: