tilde

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: MIT Imports: 5 Imported by: 0

README

Expand ~ in path

go get gopkg.in/mattes/go-expand-tilde.v1
import (
  "gopkg.in/mattes/go-expand-tilde.v1"
)

func main() {
  path, err := tilde.Expand("~/path/to/whatever")
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHome = errors.New("no home found")
)

Functions

func Expand

func Expand(path string) (string, error)

func Home

func Home() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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