Documentation
¶
Overview ¶
Package paths provides common path utilities for the application.
Index ¶
- Constants
- func AppDataDir(subdir string) (string, error)
- func DefaultConfigPath() (string, error)
- func DefaultHistoryPath() (string, error)
- func DefaultLastFilePath() (string, error)
- func DefaultSessionDir() (string, error)
- func EnsureDir(path string) error
- func Exists(path string) bool
- func HomeDir() (string, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
Constants ¶
View Source
const (
// AppDirName is the name of the application's data directory
AppDirName = ".restclient"
)
Variables ¶
This section is empty.
Functions ¶
func AppDataDir ¶
AppDataDir returns the path to the application's data directory. If subdir is provided, it returns the path to that subdirectory.
func DefaultConfigPath ¶
DefaultConfigPath returns the path to the default config file.
func DefaultHistoryPath ¶
DefaultHistoryPath returns the path to the default history file.
func DefaultLastFilePath ¶ added in v0.2.12
DefaultLastFilePath returns the path to the file storing the last used .http/.rest file path.
func DefaultSessionDir ¶
DefaultSessionDir returns the path to the default session directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.