Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opalmer/awsips
Simple package for golang which downloads and returns https://ip-ranges.amazonaws.com/ip-ranges.json
https://github.com/opalmer/awsips
Last synced: about 1 month ago
JSON representation
Simple package for golang which downloads and returns https://ip-ranges.amazonaws.com/ip-ranges.json
- Host: GitHub
- URL: https://github.com/opalmer/awsips
- Owner: opalmer
- License: mit
- Created: 2016-04-25T16:50:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-25T17:07:13.000Z (over 8 years ago)
- Last Synced: 2024-10-12T21:21:14.813Z (3 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWSIPs
Simple package for golang, and possibly other languages in the future, which
downloads and returns information from
https://ip-ranges.amazonaws.com/ip-ranges.json.# Usage
## go```go
package mainimport (
log "github.com/Sirupsen/logrus"
"github.com/opalmer/awsips"
)func main() {
ranges, err := awsips.Get()
if err != nil {
log.Fatal(err)
}for _, prefix := range ranges.Prefixes {
// logic
}
}
```