support xml mashalling of specid.ID

This commit is contained in:
sentriz
2020-05-04 04:50:49 +01:00
committed by Senan Kelly
parent 950656af4f
commit 8a1a9bfcad

View File

@@ -57,3 +57,7 @@ func (i ID) String() string {
func (i ID) MarshalJSON() ([]byte, error) { func (i ID) MarshalJSON() ([]byte, error) {
return json.Marshal(i.String()) return json.Marshal(i.String())
} }
func (i ID) MarshalText() ([]byte, error) {
return []byte(i.String()), nil
}