paths

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MACOS   string = "darwin"
	WINDOWS string = "windows"
	LINUX   string = "linux"
)

Variables

View Source
var ErrInsufficientPackage = errors.New("both package and version must be specified")
View Source
var ErrOperatingSystem = errors.New("unsupported operating system")

Functions

func GetLinuxDataDir

func GetLinuxDataDir(home string) string

Get the Linux Data Directory

func GetMacosDataDir

func GetMacosDataDir(home string) string

Get the MacOS Data Directory

func GetPlatformDataDirectory

func GetPlatformDataDirectory(os string, home string) (string, error)

Get the Path to the systems data directory

func GetTypstPackagePath

func GetTypstPackagePath() (string, error)

Get the path to '$(DATA_DIR)/typst/packages'

If $TYPST_PACKAGE_PATH is set returns it.

func GetWindowsDataDir

func GetWindowsDataDir(home string) string

Get the Windows Data Directory

func ResolveTargetPath

func ResolveTargetPath(base, src, dst string) (string, error)

func ResolveUninstallTarget

func ResolveUninstallTarget(dataDir string, all bool, ns, pkg, ver 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