support xml mashalling of specid.ID
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user