ScyllaGo is a very simple Go Module for the scylla.sh API
This assumes you already have a working Go environment, if not please see this page first.
go get github.com/0xjbb/scyllago
Import the package into your project.
import "github.com/0xjbb/scyllago"
Below is a simple example to get you started.
results, err := scyllago.Query("username:jb", 10, 0)
if err != nil{
log.Fatal(err)
}
for _, values := range results {
fmt.Printf("%#v\n", values)
}
results, err := scyllago.Query("username:jb", 10, 0)
if err != nil{
log.Fatal(err)
}
for _, values := range results {
fmt.Println("Ip: ", values.Fields.Ip)
fmt.Println("Username: ", values.Fields.Username)
fmt.Println("Password: ", values.Fields.Password)
fmt.Println("Domain: ", values.Fields.Domain)
fmt.Println("Email: ", values.Fields.Email)
fmt.Println("Passhash: ", values.Fields.Passhash)
}
There's not much to do but if you find a bug or whatever and feel like fixing it then make a pull request.