codec: add yaml support #387

Merged
vtolstov merged 1 commits from codec-yaml into v3 2024-12-23 18:39:29 +03:00
Showing only changes of commit e5346f7e4f - Show all commits

View File

@ -20,6 +20,16 @@ func (m *Frame) UnmarshalJSON(data []byte) error {
return m.Unmarshal(data)
}
// MarshalYAML returns frame data
func (m *Frame) MarshalYAML() ([]byte, error) {
return m.Marshal()
}
// UnmarshalYAML set frame data
func (m *Frame) UnmarshalYAML(data []byte) error {
return m.Unmarshal(data)
}
// ProtoMessage noop func
func (m *Frame) ProtoMessage() {}