Better User Agent #2

Merged
jolheiser merged 1 commits from user-agent into master 2020-09-04 19:51:36 +00:00
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Have I Been Pwned
Go library for interacting with [haveibeenpwned](https://haveibeenpwned.com/).
Go library for interacting with [HaveIBeenPwned](https://haveibeenpwned.com/).
Implemented:

5
pwn.go
View File

@ -6,7 +6,10 @@ import (
"net/http"
)
const userAgent = "Go-Pwn"
const (
libVersion = "0.0.3"
userAgent = "go.jolheiser.com/pwn v" + libVersion
)
// Client is a HaveIBeenPwned client
type Client struct {