osutil

package
v0.0.0-...-7a1a713 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2013 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

func CamliBlobRoot

func CamliBlobRoot() string

func CamliConfigDir

func CamliConfigDir() string

func CamliVarDir

func CamliVarDir() string

func FindCamliInclude

func FindCamliInclude(configFile string) (absPath string, err error)

Find the correct absolute path corresponding to a relative path, searching the following sequence of directories: 1. Working Directory 2. CAMLI_CONFIG_DIR (deprecated, will complain if this is on env) 3. (windows only) APPDATA/camli 4. All directories in CAMLI_INCLUDE_PATH (standard PATH form for OS)

func GoPackagePath

func GoPackagePath(pkg string) (path string, err error)

GoPackagePath returns the path to the provided Go package's source directory. pkg may be a path prefix without any *.go files. The error is os.ErrNotExist if GOPATH is unset or the directory doesn't exist in any GOPATH component.

func HomeDir

func HomeDir() string

func IdentitySecretRing

func IdentitySecretRing() string

func OpenURL

func OpenURL(url string) error

func RestartProcess

func RestartProcess() error

restartProcess returns an error if things couldn't be restarted. On success, this function never returns because the process becomes the new process.

func UserClientConfigPath

func UserClientConfigPath() string

func UserServerConfigPath

func UserServerConfigPath() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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