tilde

package
v0.0.0-...-e5bcfb3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

Expand ~ in path

Build Status GoDoc

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