support xml mashalling of specid.ID

This commit is contained in:
sentriz
2020-06-06 18:13:45 +01:00
committed by Senan Kelly
parent 950656af4f
commit 8a1a9bfcad
+4
View File
@@ -57,3 +57,7 @@ func (i ID) String() string {
func (i ID) MarshalJSON() ([]byte, error) {
return json.Marshal(i.String())
}
func (i ID) MarshalText() ([]byte, error) {
return []byte(i.String()), nil
}