https://github.com/as/path
Path manages current working directories for text editing environments
https://github.com/as/path
Last synced: 5 months ago
JSON representation
Path manages current working directories for text editing environments
- Host: GitHub
- URL: https://github.com/as/path
- Owner: as
- Created: 2017-09-19T03:01:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-05T01:56:27.000Z (about 8 years ago)
- Last Synced: 2025-08-13T21:36:41.620Z (11 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Path
Package path simulates a current working directory in a text editing environment. It's a way to manage multiple working directories in one process.
```
// Each call to Look is similar to a user clicking on a file to open it
x := path.New("/lib/ndb/local").Look("..")
// Display in text editor
fmt.Println(x.Name())
// Use in os.Open()
fmt.Println(x.Abs())
```