paths

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chrome

func Chrome() (string, error)

Chrome gets the chrome path

func Joy

func Joy() (string, error)

Joy is root the directory where Joy stores source, state and analytics. This will first check the $GOPATH, but fallback to an OS-specific directory.

TODO: should we use go-bindata and just embed the runtime and headless chrome?

Based on: https://github.com/sindresorhus/env-paths

func Macro

func Macro() (string, error)

Macro gets the macro path

func Preferences

func Preferences() (string, error)

Preferences gets the OS-specific preferences path

This is used for the runtime, the stdlib, chrome and the macro, when Joy is not installed in the $GOPATH. The norm for non-Joy developers

func Runtime

func Runtime() (string, error)

Runtime gets the runtime path

func Stdlib

func Stdlib() (string, error)

Stdlib path

Types

This section is empty.

Jump to

Keyboard shortcuts

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