dir

package
v0.1.1-0...-8b6b0d7 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPath

func GetPath() (string, error)

GetPath returns the value of $PLUTO

func Home

func Home() (string, error)

Home returns the user's home directory

func LocateAnySources

func LocateAnySources(pkg string) ([]string, error)

LocateAnySources first tries to locate sources as absolute, but if none are found, looks in $PLUTO/packages. For example, pkg=std/io will find the standard IO package, and /Users/.../packages/io/src/* will find the source files of it.

func LocateRootSources

func LocateRootSources(pkg string) ([]string, error)

LocateRootSources finds the source files specified, relative to $PLUTO/packages.

func LocateSources

func LocateSources(dir, pkg string) ([]string, error)

LocateSources finds the source files specified. pkg is a glob, such as "std/io" or "std/*". The package is located relative to dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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