paths

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package paths 管理 javdb-cli 本机状态文件的路径。

Index

Constants

View Source
const AppDirName = ".javdb-cli"

AppDirName is the directory under the user home used for credentials/config.

Variables

This section is empty.

Functions

func AuthPath

func AuthPath() (string, error)

func ConfigPath

func ConfigPath() (string, error)

func DeviceUUIDPath

func DeviceUUIDPath() (string, error)

func Dir

func Dir() (string, error)

Dir returns ~/.javdb-cli (or $HOME/.javdb-cli), creating nothing.

func EnsureDefaultConfigFile

func EnsureDefaultConfigFile() error

EnsureDefaultConfigFile 在配置首次缺失时创建只含常用选项的私有基线文件。

func EnsureDir

func EnsureDir() (string, error)

EnsureDir creates the config directory with 0700 permissions.

func ReverseSearchCacheDir added in v0.7.0

func ReverseSearchCacheDir() (string, error)

ReverseSearchCacheDir 返回反搜响应缓存的目录(~/.javdb-cli/reverse-search-cache)。

func RouteCachePath

func RouteCachePath() (string, error)

RouteCachePath 返回自动选线路由缓存文件的路径(~/.javdb-cli/route.json)。

func TagTaxonomyPath

func TagTaxonomyPath(zone string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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