https://github.com/keith/netrc
A netrc implementation in Go
https://github.com/keith/netrc
Last synced: 9 months ago
JSON representation
A netrc implementation in Go
- Host: GitHub
- URL: https://github.com/keith/netrc
- Owner: keith
- License: mit
- Created: 2013-08-27T19:43:43.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2021-10-06T02:50:28.000Z (over 4 years ago)
- Last Synced: 2025-04-07T22:51:08.243Z (about 1 year ago)
- Language: Go
- Size: 17.6 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netrc
This is a simple implementation for reading a [.netrc](http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-File.html)
file for a user's credentials for services
[](https://travis-ci.org/Keithbsmiley/netrc)
[](https://coveralls.io/r/Keithbsmiley/netrc)
## Installation
```
$ go get github.com/Keithbsmiley/netrc
```
The add it to your `import`
```
import (
"github.com/Keithbsmiley/netrc"
)
```
### Development
At the moment this library still has some major feature omissions. Such
as setting new credentials in the user's netrc. I plan on adding these
soon and I will write a better usage guide then. For now most of the
methods are [commented](https://github.com/Keithbsmiley/netrc/blob/master/netrc.go)
and you can view [`netrc_test`](https://github.com/Keithbsmiley/netrc/blob/master/netrc_test.go)
to see some of the method calls.