Skip to content
Golang library to get $PWD (current working directory)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitstrap.yaml
.travis.yml
LICENSE
README.md
gopwd.go
gopwd_test.go

README.md

DevOps By Rultor.com

Build Status

PDD status License

Golang library to get current working directory absolute path or its name.

Usage

Download: go get -u github.com/g4s8/gopwd

Example:

import "github.com/g4s8/gopwd"
import "fmt"

func main() {
  pwd, err := gopwd.Name()
  if err != nil {
    panic(err)
  }
  fmt.Printf("Current directory is %s\n", pwd)
}

Contribution

Fork repository, clone it, make changes, push to new branch and submit a pull request.

You can’t perform that action at this time.