Documentation ¶
Overview ¶
Package history provides a seekable sequence of rpg.State.
Index ¶
Constants ¶
View Source
const ( SeekStart = iota SeekCur SeekEnd )
See also: io.Seeker
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
type History struct {
// contains filtered or unexported fields
}
History is a seekable sequence of rpg.State.
func NewHistory ¶
func NewHistory(f io.ReadWriteSeeker) *History
NewHistory returns a new History that reads from and writes to f.
func (*History) Append ¶
Append adds s to the end of h. h.Seek(0, SeekEnd) is called before writing. A non-nil error means that h is no longer safe to use.
func (*History) Reset ¶
func (h *History) Reset()
Reset sets the cursor to position -1, equivalent to calling NewHistory on the same io.ReadWriteSeeker.
Click to show internal directories.
Click to hide internal directories.