Discover Packages
github.com/gofunky/goplayspace
client
component
editor
undo
package
Version:
v0.0.0-...-c88107b
Opens a new window with list of versions in this module.
Published: Aug 5, 2018
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Entry holds information about single undo entry
Stack holds undo and redo entries
NewStack initializes and returns a Stack instance
CanRedo returns true if the redo list is not empty
CanUndo returns true if the undo list is not empty
CurrentState returns current state
(entry current position is pointing to)
Push pushes new state to the stack
Redo does one redo step: moves current position one step forward
from redo to undo stack and returns the top entry on the undo stack
(or nil if there are no more entries)
Undo does one undo step: moves current position one step back
and returns the top entry on the undo stack
(or nil if there are no more entries)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.