cedar-policy / cedar-go

Golang implementation of the Cedar Policy Language
Apache License 2.0
83 stars 9 forks source link

Should there be a `UnmarshalCedar` receiver? #44

Open mqf20 opened 1 month ago

mqf20 commented 1 month ago

For example, there is a func (v EntityUID) MarshalCedar() []byte receiver:

MarshalCedar produces a valid MarshalCedar language representation of the EntityUID, e.g. Type::"id".

Should there also be a func (v *EntityUID) UnmarshalCedar(b []byte) error receiver?