ospath

package
v0.0.0-...-5fe729b Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package ospath provides utilities to get OS-specific directories.

Deprecated: Use package os instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir deprecated

func CacheDir(importPath string) (string, error)

CacheDir tries to acquire an OS-specific app cache directory for the given importPath. Cache directory contains the app's cached data that can be regenerated as needed. Apps should never rely on the existence of cache files.

It's guaranteed to be a unique directory for the importPath. Before returning the directory's path, CacheDir creates the directory if it doesn't already exist, so it can be used right away.

Deprecated: Use os.UserCacheDir instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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