// SetID sets ID for new document or return error.
SetID sets ID for new document or return error.
// SetID sets ID for new document or return error .
func (d *Document) SetID(id string) error {
	if d.id != "" {
		return ErrSetID
	}
	d.id = id
	return nil
}
func ( d * Document ) SetID ( id string ) error { if d . id != " " { return ErrSetID } d . id = id return nil }
SetID sets ID for new document or return error.
SetID sets ID for new document or return error .