Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elcuervo/redisurl
Redis url parser
https://github.com/elcuervo/redisurl
Last synced: 30 days ago
JSON representation
Redis url parser
- Host: GitHub
- URL: https://github.com/elcuervo/redisurl
- Owner: elcuervo
- License: mit
- Created: 2014-03-08T03:11:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-08T04:23:29.000Z (over 10 years ago)
- Last Synced: 2023-08-11T23:30:00.861Z (over 1 year ago)
- Language: Go
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redisurl
Parses a redis url and returns a struct with the result
```go
url = redisurl.Parse("redis://username:s3cr37@somewhere:6380/9")
// url.Port
// 6380
// url.Database
// 9
// url.Host
// somewhere
// url.Password
// s3cr37
```
You can also use `.Url` to get a Redis compatible string.