1
0
Fork 0

Adding upstream version 1.1.10.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-17 06:08:25 +02:00
parent 0935a35f2a
commit 504a5578e5
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
12 changed files with 537 additions and 0 deletions

22
cmd/whois/main.go Normal file
View file

@ -0,0 +1,22 @@
package main
import (
"fmt"
"os"
"github.com/TwiN/whois"
)
func main() {
if len(os.Args) != 2 {
_, _ = fmt.Fprintln(os.Stderr, "you must provide exactly one domain")
os.Exit(1)
return
}
output, err := whois.NewClient().Query(os.Args[1])
if err != nil {
_, _ = fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
fmt.Println(output)
}