reversekey

package
v0.90.5 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(file *os.File, key string) error

Write appends a length-framed key to a spool file.

Types

type File

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

File reads a temporary key spool in reverse order.

func New

func New(file *os.File) *File

New creates a reverse cursor over file. Close removes the backing spool.

func (*File) Close

func (f *File) Close()

Close closes and removes the temporary spool. Repeated calls are safe.

func (*File) NextReverse

func (f *File) NextReverse() (string, bool, error)

NextReverse returns the preceding key, or false at the start of the spool.

func (*File) Reset

func (f *File) Reset()

Reset positions the next read at the end of the spool.

Jump to

Keyboard shortcuts

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