system

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 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 ErrOperatingSystem = errors.New("unsupported operating system")

Functions

func GetDataDirectory

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

Get the Path to the systems data directory

func GetStoragePath

func GetStoragePath(goos, home, namespace, name, version string) (string, error)

Get the final path to a package in the data directory given a namespace and a name.

func OpenTypstTOML

func OpenTypstTOML(directory string) (i.PackageInfo, error)

Try to open the Typst TOML file. Returns an error if not existing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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