env

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoEditorDefined is the no editor defined error.
	ErrNoEditorDefined = errors.New("no editor defined")
)

Functions

func EditFile

func EditFile(path, line, s string) ([]rune, error)

EditFile edits a file. If path is empty, then a temporary file will be created.

func Expand

func Expand(path string, dir string) string

Expand expands the tilde (~) in the front of a path to a the supplied directory.

func HistoryFile

func HistoryFile(u *user.User) string

HistoryFile returns the path to the history file.

func RCFile

func RCFile(u *user.User) string

RCFile returns the path to the RC file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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