# pathhelper

Package pathhelper provides path related helper functions.


#### Get absolute path of current executalbe directory.

    dir, err := pathhelper.GetCurrentExecDir()
    if err != nil {
        return
    }

#### Get absolute path of given relative path.  
It joins absolute path of current executable directory and given relative path into a single absolute path.

    p := "./config"
    absPath := ""
    if absPath, err = pathhelper.GetAbsPath(p); err != nil {
        fmt.Fprintf(os.Stderr, "GetAbsPath(%v) error: %v\n", p, err)
    }

#### Documentation
* [API Reference](http://godoc.org/github.com/northbright/pathhelper)

#### License
* [MIT License](./LICENSE)

# pathhelper

pathhelper is a [Golang](http://golang.org) package which provides path related helper functions.

#### Get absolute path of current executalbe directory.

    dir, err := pathhelper.GetCurrentExecDir()
    if err != nil {
        return
    }

#### Get absolute path of given relative path.  
It joins absolute path of current executable directory and given relative path into a single absolute path.

    p := "./config"
    absPath := ""
    if absPath, err = pathhelper.GetAbsPath(p); err != nil {
        fmt.Fprintf(os.Stderr, "GetAbsPath(%v) error: %v\n", p, err)
    }

#### Documentation
* [API Reference](http://godoc.org/github.com/northbright/pathhelper)

#### License
* [MIT License](./LICENSE)

Make it easy to understandard what pathhelper is
Make it easy to understandard what pathhelper is
