package models import ( "encoding/xml" "github.com/google/uuid" ) type ObjectId struct { XMLName xml.Name `xml:"ObjectId"` Value string `xml:",chardata"` } func NewObjectId() *ObjectId { id := uuid.New() return &ObjectId{Value: id.String()} }