(card *Card)
| 289 | } |
| 290 | |
| 291 | func NewUndoState(card *Card) *UndoState { |
| 292 | |
| 293 | state := &UndoState{ |
| 294 | Card: card, |
| 295 | Serialized: card.Serialize(false), |
| 296 | } |
| 297 | |
| 298 | return state |
| 299 | |
| 300 | } |
| 301 | |
| 302 | func (undoState *UndoState) String() string { |
| 303 | return undoState.Serialized + fmt.Sprintf(" Deletion: %t", undoState.Deletion) |
no test coverage detected