Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
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
}
}
```