lastfile

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package lastfile provides functionality to persist and retrieve the last used .http/.rest file path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() error

Clear removes the stored last file path.

func Exists

func Exists() bool

Exists returns true if there is a stored last file path (regardless of whether the file exists).

func Load

func Load() (string, error)

Load retrieves the last used file path. Returns an empty string and nil error if no last file is stored. If the stored file no longer exists, clears the lastfile and returns an error.

func Save

func Save(filePath string) error

Save stores the given file path as the last used file. The path is converted to an absolute path before saving.

Types

This section is empty.

Jump to

Keyboard shortcuts

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