Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keith/netrc
A netrc implementation in Go
https://github.com/keith/netrc
Last synced: about 1 month 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 (about 11 years ago)
- Default Branch: main
- Last Pushed: 2021-10-06T02:50:28.000Z (about 3 years ago)
- Last Synced: 2024-10-03T17:44:21.796Z (about 1 month ago)
- Language: Go
- Size: 17.6 KB
- Stars: 8
- Watchers: 3
- 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[![Build Status](https://travis-ci.org/Keithbsmiley/netrc.png)](https://travis-ci.org/Keithbsmiley/netrc)
[![Coverage Status](https://coveralls.io/repos/Keithbsmiley/netrc/badge.png)](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.