A golang library for HaveIBeenPwned REST API - https://haveibeenpwned.com/
go get https://github.com/mavjs/goPwned
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.GetBreachesForAccount("foo@bar.com"))
}
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.GetBreachesForAccount("foo@bar.com", "adobe.com"))
}
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.AllBreaches())
}
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.AllBreaches("adobe.com"))
}
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.GetSingleBreachedSite("adobe"))
}
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.GetAllDataClasses())
}
import (
"github.com/mavjs/goPwned"
)
func main() {
fmt.Println(gopwned.GetAllPastesForAccount("foo@bar.com"))
}
MIT