history

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) Redo

func (m *Manager) Redo() (*deck.Deck, error)

Returns the state of the deck, error if there are no more redo operations.

func (*Manager) Save

func (m *Manager) Save(decks ...*deck.Deck)

Saves the deck onto the change stack.

func (*Manager) Undo

func (m *Manager) Undo() (*deck.Deck, error)

Returns the state of the deck, error if there are no more undo operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL